-
Notifications
You must be signed in to change notification settings - Fork 438
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
WITH_STL shouldn't try importing gsl::span if std::span is not available. #813
Comments
I already added a fix for that here:
Could you please take a look at my PR? #771 |
I added my comments to #742 here - #742 (comment) |
I'll assign to myself. I believe I have a reasonable fix in my bigger variant PR. Feedback is welcomed, in case if we want to decouple |
I would like to test this on latest build. Although we enable the option by-default for Perhaps we should've switched our Main motivation of defaulting to GSL span rather than implementing our own
|
The |
What's the current behavior? I thought if |
This issue was marked as stale due to lack of activity. It will be closed in 7 days if no furthur activity occurs. |
Thanks, @maxgolov, have unassigned you and added a help-wanted tag. I will take it over if no one picks it. The immediate need for this issue would be not using |
@lalitb I can take it over. |
As discussed in #742:
If the
WITH_STL
cmake option is enabled, the build should be using std::span if available (for C++20), and fall back tonostd::span
instead ofgsl::span
( or perhaps fail the build). Usegsl::span
only if developers explicitly specify theWITH_GSL
build option.The text was updated successfully, but these errors were encountered: