diff --git a/platform/cxxsupport/mstd_span b/platform/cxxsupport/mstd_span index fed416a..1cc4d47 100644 --- a/platform/cxxsupport/mstd_span +++ b/platform/cxxsupport/mstd_span @@ -17,6 +17,19 @@ #ifndef MSTD_SPAN_ #define MSTD_SPAN_ +#if __cplusplus >= 201703L && __has_include() +#include +#endif + +#if __cpp_lib_span >= 202002L +#include + +namespace mstd { + using std::span; +} + +#else //__cpp_lib_span >= 202002L + #include #include #include @@ -364,4 +377,5 @@ } // namespace mstd +#endif //__cpp_lib_span >= 202002L #endif // MSTD_SPAN_