diff --git a/include/gsl/span b/include/gsl/span index 4d5bc7c..49e1502 100644 --- a/include/gsl/span +++ b/include/gsl/span @@ -343,16 +343,18 @@ namespace details }; }} // namespace gsl::details +namespace std +{ template -struct std::pointer_traits<::gsl::details::span_iterator> { - using pointer = ::gsl::details::span_iterator; - using element_type = Type; +struct pointer_traits<::gsl::details::span_iterator> +{ + using pointer = ::gsl::details::span_iterator; + using element_type = Type; using difference_type = ptrdiff_t; - static constexpr element_type* to_address(const pointer i) noexcept { - return i.current_; - } + static constexpr element_type* to_address(const pointer i) noexcept { return i.current_; } }; +} // namespace std namespace gsl { namespace details { template