Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't compile #2

Open
mutluit opened this issue Jun 4, 2017 · 0 comments
Open

Doesn't compile #2

mutluit opened this issue Jun 4, 2017 · 0 comments

Comments

@mutluit
Copy link

mutluit commented Jun 4, 2017

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>

...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant