Skip to content

Commit

Permalink
Deprecate the Ptr make_span overloads (#1113)
Browse files Browse the repository at this point in the history
These overloads don't seem to be in a usable state, and their original purpose is no longer clear. Deprecate them.
Resolves #1092
  • Loading branch information
dmitrykobets-msft authored May 22, 2023
1 parent afaaa71 commit 303d964
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/gsl/span_ext
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,14 @@ constexpr span<const typename Container::value_type> make_span(const Container&
}

template <class Ptr>
[[deprecated("This function is deprecated. See GSL issue #1092.")]]
constexpr span<typename Ptr::element_type> make_span(Ptr& cont, std::size_t count)
{
return span<typename Ptr::element_type>(cont, count);
}

template <class Ptr>
[[deprecated("This function is deprecated. See GSL issue #1092.")]]
constexpr span<typename Ptr::element_type> make_span(Ptr& cont)
{
return span<typename Ptr::element_type>(cont);
Expand Down

0 comments on commit 303d964

Please sign in to comment.