Permalink
Browse files

Fix build on gcc 4.x

  • Loading branch information...
lluchs committed Oct 15, 2018
1 parent c6d5c50 commit 34d89adf473a952cc4ca684a3af4ac5bfd4efb1d
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/lib/StdAdaptors.h
@@ -227,7 +227,10 @@ inline StdRawAdapt mkRawAdapt(void *pData, size_t iSize, StdCompiler::RawCompile
template <typename T>
inline StdRawAdapt mkRawAdaptM(T &val)
{
// GCC 4.x doesn't support std::is_trivially_copyable
#if !defined(__GNUC__) || __GNUC__ > 4
static_assert(std::is_trivially_copyable<T>::value, "StdRawAdapt: type must be trivially copyable");
#endif
return mkRawAdapt(&val, sizeof(val));
}

0 comments on commit 34d89ad

Please sign in to comment.