-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Let span_FEATURE_NON_MEMBER_FIRST_LAST_SUB make make_span() available (…
…#35, thanks to @Flamefire)
- Loading branch information
1 parent
689e26f
commit 615e38e
Showing
2 changed files
with
4 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -232,11 +232,11 @@ Define this to 1 to provide function `same()` to test if two spans refer as iden | |
### Provide `first()`, `last()` and `subspan()` functions | ||
-D<b>span_FEATURE_NON_MEMBER_FIRST_LAST_SUB</b>=1 | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
martinmoene
Author
Owner
|
||
Define this to 1 to provide functions `first()`, `last()` and `subspan()`. This requires `make_span()` functions to be available, see `span_FEATURE_MAKE_SPAN_TO_STD`. Default is undefined. | ||
Define this to 1 to provide functions `first()`, `last()` and `subspan()`. This implies `span_FEATURE_MAKE_SPAN` to provide functions `make_span()` that are required for this feature. Default is undefined. | ||
### Provide `make_span()` functions | ||
-D<b>span_FEATURE_MAKE_SPAN</b>=1 | ||
Define this to 1 to provide creator functions `nonstd::make_span()`. Note that `span_FEATURE_MAKE_SPAN` takes precedence over `span_FEATURE_MAKE_SPAN_TO_STD`. Default is undefined. | ||
Define this to 1 to provide creator functions `nonstd::make_span()`. This feature is implied by using `span_FEATURE_NON_MEMBER_FIRST_LAST_SUB=1`. Note that `span_FEATURE_MAKE_SPAN` takes precedence over `span_FEATURE_MAKE_SPAN_TO_STD`. Default is undefined. | ||
-D<b>span_FEATURE_MAKE_SPAN_TO_STD</b>=14 | ||
Define this to the highest C++ language version for which to provide creator functions `nonstd::make_span()`, like 98, 03, 11, 14, 17, 20. Note that `span_FEATURE_MAKE_SPAN` takes precedence over `span_FEATURE_MAKE_SPAN_TO_STD`. Default is undefined. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BTW: Could you also have the example define not have a value or the default value? I got confused reading this as I expected that the define show is the default. IMO easiest would be to simply have span_FEATURE_NON_MEMBER_FIRST_LAST_SUB here