-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Conversion from vector<bool> to json fails to build #494
Comments
I can confirm the issue with clang version 5.0.0 (trunk 296991) and gcc 7.0.1 20170305 (experimental). |
I forgot about that famous container ... |
How was it excluded so far? |
The problem is that a version of |
I understand. I was just curious what part of the |
Usually problems with |
Exact, we iterate on container elements and call Since |
Adds a to_json function for std::vector<bool> to allow implicit conversion from bit vectors to basic_json.
Should be fixed with d9e2dd0. Waiting for Travis to complete. |
The following code:
Fails to compile on os x (clang-800.0.42.1) when built like this:
clang++ -std=c++11 -c main.cpp
Substituting vector with another container (like list) compiles ok.
This also compiles fine on a linux system (I don't have the version info available, will update if necessary).
Am I missing some compiler params / something else or is this a problem with the library?
The full compilation error is below:
The text was updated successfully, but these errors were encountered: