-
Notifications
You must be signed in to change notification settings - Fork 2
Description
How to use that code? I get compile errors:
I put my my_test.cpp into the Aligned directory, added an #include "Aligned.hpp" into my_test.cpp,
and tried to compile:
$ g++ -O2 -Wall -std=gnu++14 -pthread my_test.cpp
It gives countless errors:
In file included from Aligned.hpp:11:0,
from my_test.cpp:263:
AlignedArrayConstructorCaller.hpp:4:61: error: ‘is_trivially_default_constructible’ is not a member of ‘std’
template<typename T, bool IsTriviallyDefaultConstructible = std::is_trivially_default_constructible::value>
^
AlignedArrayConstructorCaller.hpp:4:102: error: expected primary-expression before ‘>’ token
template<typename T, bool IsTriviallyDefaultConstructible = std::is_trivially_default_constructible::value>
^
AlignedArrayConstructorCaller.hpp:4:105: error: ‘value’ in namespace ‘::’ does not name a type
template<typename T, bool IsTriviallyDefaultConstructible = std::is_trivially_default_constructible::value>
...