-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
Example:
-Dspan_FEATURE_MAKE_SPAN_TO_STD=14
Define this to the highest C++ language version for which to provide creator functions nonstd::make_span(). Default is undefined.
- I do not understand why? It sounds like defining this to "14" leads to
make_spanavailable in 98, 11, 14 and not available in 17, 20, ... Why would one want this? - It does not work like that:
#define span_IN_STD( v ) ( (v) == 98 || (v) >= span_CPLUSPLUS_V )
- When defined to 98 it will always be available
- Otherwise see 1.
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)
Metadata
Metadata
Assignees
Labels
No labels