Fix spaming messages in assert and is_trivially_copyable on GCC 4
This commit is contained in:
committed by
Lirusaito
parent
69100fcca3
commit
4a59efadeb
@@ -109,3 +109,15 @@ typedef U8 LLPCode;
|
||||
#define LL_ARRAY_SIZE( _kArray ) ( sizeof( (_kArray) ) / sizeof( _kArray[0] ) )
|
||||
|
||||
#endif
|
||||
|
||||
#if __GNUG__ && __GNUC__ < 5
|
||||
namespace std
|
||||
{
|
||||
template<typename T>
|
||||
struct is_trivially_copyable
|
||||
{
|
||||
static const bool value = __has_trivial_copy(T);
|
||||
operator bool() { return value; }
|
||||
};
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user