From 303d964a241cb2f2a058fe0baa14013eb9afa116 Mon Sep 17 00:00:00 2001 From: Dmitry Kobets <89153909+dmitrykobets-msft@users.noreply.github.com> Date: Mon, 22 May 2023 10:48:41 -0700 Subject: [PATCH] Deprecate the Ptr make_span overloads (#1113) These overloads don't seem to be in a usable state, and their original purpose is no longer clear. Deprecate them. Resolves #1092 --- include/gsl/span_ext | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/gsl/span_ext b/include/gsl/span_ext index 516cc99..2a7664c 100644 --- a/include/gsl/span_ext +++ b/include/gsl/span_ext @@ -123,12 +123,14 @@ constexpr span make_span(const Container& } template +[[deprecated("This function is deprecated. See GSL issue #1092.")]] constexpr span make_span(Ptr& cont, std::size_t count) { return span(cont, count); } template +[[deprecated("This function is deprecated. See GSL issue #1092.")]] constexpr span make_span(Ptr& cont) { return span(cont);