diff --git a/platform/cxxsupport/mstd_span b/platform/cxxsupport/mstd_span index fed416a8673..1cc4d4701a7 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 @@ constexpr span make_span(const R &cont) } // namespace mstd +#endif //__cpp_lib_span >= 202002L #endif // MSTD_SPAN_