Skip to content

span_FEATURE_*_TO_STD does not do what is advertised #32

@Flamefire

Description

@Flamefire

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.

  1. I do not understand why? It sounds like defining this to "14" leads to make_span available in 98, 11, 14 and not available in 17, 20, ... Why would one want this?
  2. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions