You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
...
The text was updated successfully, but these errors were encountered:
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>
...
The text was updated successfully, but these errors were encountered: