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

is_set() tests fail with clang on windows #261

Open
emptywalls opened this issue Jun 6, 2018 · 4 comments
Open

is_set() tests fail with clang on windows #261

emptywalls opened this issue Jun 6, 2018 · 4 comments

Comments

@emptywalls
Copy link

error: static_assert failed due to requirement '!brigand::is_set<int, int>::value' "error in brigand::is_set"
static_assert(!brigand::is_set<int, int>::value, "error in brigand::is_set");
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: static_assert failed due to requirement 'brigand::is_set<void, int &, int>::value' "error in brigand::is_set"
static_assert(brigand::is_set<void, int&, int>::value, "error in brigand::is_set");
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: static_assert failed due to requirement 'brigand::is_set<void, const int, int>::value' "error in brigand::is_set"
static_assert(brigand::is_set<void, const int, int>::value, "error in brigand::is_set");
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: static_assert failed due to requirement 'brigand::is_set<int, short, double>::value' "error in brigand::is_set"
static_assert(brigand::is_set<int, short, double>::value, "error in brigand::is_set");
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: static_assert failed due to requirement 'brigand::is_set<int, short, double, float>::value' "error in brigand::is_set"
static_assert(brigand::is_set<int, short, double, float>::value, "error in brigand::is_set");
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: static_assert failed due to requirement 'brigand::is_set<int, void, int &>::value' "error in brigand::is_set"
static_assert(brigand::is_set<int, void, int&>::value, "error in brigand::is_set");
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~

clang-cl.exe --version
clang version 7.0.0 (trunk 328716)

#define BRIGAND_COMP_MSVC fixes the problem.
In particular I have encountered this using chromiums build environment since they moved to clang on windows.

@edouarda
Copy link
Owner

edouarda commented Jun 6, 2018

It's clang on which platform?

@emptywalls
Copy link
Author

clang-cl.exe --version
clang version 7.0.0 (trunk 328716)
Target: x86_64-pc-windows-msvc

@emptywalls
Copy link
Author

Also as I already mentioned I encountered this in chromiums build environment which has a rather lengthy list of compiler switches applied. The error very well may be due to clangs compatibility to msvc, I have not looked closely.

@edouarda
Copy link
Owner

edouarda commented Jun 6, 2018

That may be the case as I think we only test Clang on Mac and Linux.

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

2 participants