From b81d6e40e13708a6019ff9758db263c2f385ed80 Mon Sep 17 00:00:00 2001 From: "Jordan Maples [MSFT]" <49793787+JordanMaples@users.noreply.github.com> Date: Fri, 7 Feb 2020 14:15:44 -0800 Subject: [PATCH] constexpr the make_subspan calls. --- include/gsl/span | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/gsl/span b/include/gsl/span index 6cfc91c..445826c 100644 --- a/include/gsl/span +++ b/include/gsl/span @@ -676,7 +676,7 @@ private: }; template - span make_subspan(size_type offset, size_type count, + constexpr span make_subspan(size_type offset, size_type count, subspan_selector) const { const span tmp(*this); @@ -686,7 +686,7 @@ private: // clang-format off GSL_SUPPRESS(bounds.1) // NO-FORMAT: attribute // clang-format on - span make_subspan(size_type offset, size_type count, + constexpr span make_subspan(size_type offset, size_type count, subspan_selector) const { Expects(size() >= offset);