kokkos / mdspan

Reference implementation of mdspan targeting C++23
Other
413 stars 69 forks source link

Fix `make_single_header.py` to satisfy lower version compiler when us… #226

Closed Ghost-LZW closed 1 year ago

Ghost-LZW commented 1 year ago

Fix make_single_header.py to satisfy lower version compiler when useing single_header version mdspan

Format with black

Ghost-LZW commented 1 year ago

add it to the front matter just to be clean

May break some define condition, eg:

#if __has_include(<version>)
#  include <version>
#else
#  include <type_traits>
#  include <utility>
#endif

in https://github.com/kokkos/mdspan/blob/stable/include/experimental/__p0009_bits/config.hpp#L22-L27

Ghost-LZW commented 1 year ago

https://godbolt.org/z/d9jGjYeE8 Test success under clang7