Fix reading MLD data into shared memory block

This commit is contained in:
Michael Krasnyk
2017-03-07 19:19:54 +01:00
committed by Patrick Niklaus
parent e423aa5511
commit 264cec12e9
3 changed files with 34 additions and 14 deletions
+1
View File
@@ -82,6 +82,7 @@ class FileReader
template <typename T> void ReadInto(T *dest, const std::size_t count)
{
#if not defined __GNUC__ or __GNUC__ > 4
static_assert(!std::is_pointer<T>::value, "saving pointer types is not allowed");
static_assert(std::is_trivially_copyable<T>::value,
"bytewise reading requires trivially copyable type");
#endif