Make EMPTY_ENTRY_CLASS constexpr

This commit is contained in:
Patrick Niklaus
2017-06-26 16:43:02 +00:00
committed by Patrick Niklaus
parent 22479ff5d8
commit dd8f5ac01d
3 changed files with 5 additions and 5 deletions
+3 -1
View File
@@ -39,7 +39,7 @@ class EntryClass
using FlagBaseType = std::uint32_t;
public:
EntryClass();
constexpr EntryClass() : enabled_entries_flags(0) {}
// we are hiding the access to the flags behind a protection wall, to make sure the bit logic
// isn't tempered with. zero based indexing
@@ -72,6 +72,8 @@ static_assert(std::is_trivially_copyable<EntryClass>::value,
} // namespace guidance
} // namespace utilr
constexpr const util::guidance::EntryClass EMPTY_ENTRY_CLASS{};
} // namespace osrm
// make Entry Class hasbable