Aligned icon indicating copy to clipboard operation
Aligned copied to clipboard

Doesn't compile

Open mutluit opened this issue 7 years ago • 0 comments

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>

...

mutluit avatar Jun 04 '17 18:06 mutluit