constexpr the make_subspan calls.

This commit is contained in:
Jordan Maples [MSFT] 2020-02-07 14:15:44 -08:00
parent 377b2db537
commit b81d6e40e1

View File

@ -676,7 +676,7 @@ private:
};
template <std::size_t CallerExtent>
span<element_type, dynamic_extent> make_subspan(size_type offset, size_type count,
constexpr span<element_type, dynamic_extent> make_subspan(size_type offset, size_type count,
subspan_selector<CallerExtent>) const
{
const span<element_type, dynamic_extent> tmp(*this);
@ -686,7 +686,7 @@ private:
// clang-format off
GSL_SUPPRESS(bounds.1) // NO-FORMAT: attribute
// clang-format on
span<element_type, dynamic_extent> make_subspan(size_type offset, size_type count,
constexpr span<element_type, dynamic_extent> make_subspan(size_type offset, size_type count,
subspan_selector<dynamic_extent>) const
{
Expects(size() >= offset);