diff --git a/include/gsl/span b/include/gsl/span index 22e8459..622c031 100644 --- a/include/gsl/span +++ b/include/gsl/span @@ -121,6 +121,12 @@ namespace details using element_type_ = typename Span::element_type; public: + +#ifdef _MSC_VER + // Tell Microsoft standard library that span_iterators are checked. + using _Unchecked_type = typename Span::pointer; +#endif + using iterator_category = std::random_access_iterator_tag; using value_type = std::remove_cv_t; using difference_type = typename Span::index_type;