From 978b70c9986b466408537ae78854348c4994acb0 Mon Sep 17 00:00:00 2001 From: "Daniel J. Hofmann" Date: Thu, 28 Jan 2016 16:57:05 +0100 Subject: [PATCH] Adds a comment as to why the char to typed enum class transformation is not possible --- include/extractor/travel_mode.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/extractor/travel_mode.hpp b/include/extractor/travel_mode.hpp index 1de8c2266..af16bcaee 100644 --- a/include/extractor/travel_mode.hpp +++ b/include/extractor/travel_mode.hpp @@ -6,6 +6,8 @@ namespace osrm namespace extractor { +// This is a char instead of a typed enum, so that we can +// pack it into e.g. a "TravelMode mode : 4" packed bitfield using TravelMode = unsigned char; } }