Closed stigrs closed 2 years ago
@stigrs Thanks for reporting! The concept is protected by #if _MDSPAN_USE_CONCEPTS && MDSPAN_HAS_CXX_20
, and Clang 13 supposedly supports concepts, so here are some possibilities.
same_as
means std::same_as
(even though this all takes place in the scope of namespace std
)<concepts>
hasn't been includedMDSPAN_HAS_CXX_20
is wrongCould you please try replacing same_as
with ::std::same_as
(note the double colon prefix) in those three lines? If that doesn't work, could you also try including <concepts>
at the top of the header file?
Note I can reproduce this with clang13 on linux
The breakage on clang13 for me is that by default it was using GCC 9 headers from some gcc install. It still was defining __cpp_concepts but didn't have the
could reproduce on Mac: including concepts fixes the issue.
See #155
I tried to build mdspan on macOS 11 using AppleClang 13.0.0.13000029, and got the following errors: