This commit is contained in:
Moritz Kobitzsch
2016-07-19 12:24:32 +02:00
parent 8831ca2f32
commit ee47afbe17
5 changed files with 23 additions and 10 deletions
+7
View File
@@ -62,6 +62,13 @@ class EntryClass
friend std::size_t std::hash<EntryClass>::operator()(const EntryClass &) const;
};
#if not defined __GNUC__ or __GNUC__ > 4
static_assert(std::is_trivially_copyable<EntryClass>::value,
"Class is serialized trivially in "
"the datafacades. Bytewise writing "
"requires trivially copyable type");
#endif
} // namespace guidance
} // namespace utilr
} // namespace osrm