mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Fix warning 4996 on Microsoft compiler (#633)
This commit is contained in:
parent
6a33b97a84
commit
c9e423d7cf
@ -121,6 +121,12 @@ namespace details
|
|||||||
using element_type_ = typename Span::element_type;
|
using element_type_ = typename Span::element_type;
|
||||||
|
|
||||||
public:
|
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 iterator_category = std::random_access_iterator_tag;
|
||||||
using value_type = std::remove_cv_t<element_type_>;
|
using value_type = std::remove_cv_t<element_type_>;
|
||||||
using difference_type = typename Span::index_type;
|
using difference_type = typename Span::index_type;
|
||||||
|
Loading…
Reference in New Issue
Block a user