-
Notifications
You must be signed in to change notification settings - Fork 44
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
span_FEATURE_*_TO_STD does not do what is advertised #32
Comments
Ad 1.
span-lite provides a span type for C++98 and later and does provide The expected number should have been document as with Ad 2. The desired order is (C++) 98, 03, 11, 14, 17, 20... "It looked like a good idea at the time" and it's one way of doing it; an on/off toggle like |
Thanks, I'll look at the implementation of |
My point is: If you use this now with So either provide it or don't provide it. I even run into a situation where 1 part was compiled with C++11 and one with C++14 and So please provide at least additionally an enable flag.
Per your own docu: Additionally: If you don't provide |
Fix of
|
This accurately describes the use case I had in mind: Set the C++ standard at which one wants to be reminded to replace However you do make a clear case for providing
How is compiling under different C++ standards an (side) effect of |
Thank you! 👍
Yes, but allow me to explain the case:
Now libFoo compiles but exeBar errors because I hope you now understand that the only clean solution is that libFoo defines |
Thanks for your helpful explanations!
The unconditionality could have been simulated via |
Example:
make_span
available in 98, 11, 14 and not available in 17, 20, ... Why would one want this?#define span_IN_STD( v ) ( (v) == 98 || (v) >= span_CPLUSPLUS_V )
Is this intentional? If so, can this be documented?
Why not make it simply a ON/OFF define? The build system can then be used to provide those in a more transparent way. (e.g. CMake generator expressions)
The text was updated successfully, but these errors were encountered: