diff --git a/platform/cxxsupport/mstd_span b/platform/cxxsupport/mstd_span index 0a1c7afe68..ccf545f43f 100644 --- a/platform/cxxsupport/mstd_span +++ b/platform/cxxsupport/mstd_span @@ -323,6 +323,24 @@ private: detail::storage _storage; }; +#if __cplusplus >= 201703L || __cpp_deduction_guides >= 201703L +// Deduction guides +template +span(It, EndOrSize) -> span>>; + +template +span(T (&)[N]) -> span; + +template +span(std::array&) -> span; + +template +span(const std::array&) -> span; + +template +span(R&&) -> span>>; +#endif + template constexpr span make_span(ElementType (&arr)[Extent]) {