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
vector: Fix for compilers not compatible with CWG defect 945 #166
Conversation
I'm not sure if we should support such compilers. However, this is such an easy workaround that it's probably worth having. I'm on the fence. I'll leave it up to @Flast to decide. |
Yes, it's trivial. I have no reason for rejecting this. |
Ah, it's assigned to me. OK, I'll merge. |
Thank you, both! |
It's always good to know Spirit, Fusion and Phoenix are in very capable hands. |
@Flast I don't think it is such as simple change. It breaks my c++14 code and reverting back to the previous one fixes it. |
@Kojoley @djowel @Flast I get this kind of errors:
This is open-source code here and I can produce the relevant code.
the c++ code looks like
where |
so basically the code cannot use boost starting from 1.67 due to this since it relies heavily on fusion |
It is very strange, I do not see any problems in Regression. What is your compiler? Do you have a MWE? |
clang >= 4 |
@Kojoley could it be possible to have boost macros to change the PR and detect the supported vs unsupported compilers and select the corresponding implementation ? |
I am fine with reverting the PR (since it targeted somewhat outdated compilers), however I do not understand how it broke. |
indeed I sometimes have class inheriting from fusion types |
Sorry for late reply. @prudhomm can you show me reproducible code (minimal is better but not required)? |
Closes #160 (I believe).
Reject the PR if you are not going to add support for compilers that do not support CWG defect 945 (c++11 in clang 3.0, gcc 4.6?). Also, I am not sure this is enough and there are no other problems with them.