Skip to content
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

Use proper feature test for C++20 std::span #607

Merged
merged 1 commit into from
Oct 15, 2020
Merged

Use proper feature test for C++20 std::span #607

merged 1 commit into from
Oct 15, 2020

Conversation

axic
Copy link
Member

@axic axic commented Oct 14, 2020

See https://en.cppreference.com/w/cpp/utility/feature_test which sets __cpp_lib_span as an alias to 201902L, while we were testing for 201703L.

lib/fizzy/cxx20/span.hpp Outdated Show resolved Hide resolved
@axic
Copy link
Member Author

axic commented Oct 15, 2020

Conditional includes should be after the normal ones.

The reason I put first in case we'd make the other things conditional based on the __cpp_lib* macros, but that is not yet the case so swapped.

lib/fizzy/cxx20/bit.hpp Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Oct 15, 2020

Codecov Report

Merging #607 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #607   +/-   ##
=======================================
  Coverage   98.24%   98.24%           
=======================================
  Files          63       63           
  Lines        9370     9370           
=======================================
  Hits         9206     9206           
  Misses        164      164           

And make sure <version> is included in cxx20/bit.hpp.
@axic axic merged commit d9626d3 into master Oct 15, 2020
@axic axic deleted the span branch October 15, 2020 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants