Fix warning 4996 on Microsoft compiler (#633)

This commit is contained in:
Alex Howlett 2018-03-05 15:04:22 -05:00 committed by Neil MacIntosh
parent 6a33b97a84
commit c9e423d7cf

View File

@ -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<element_type_>;
using difference_type = typename Span::index_type;