mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
constexpr the make_subspan calls.
This commit is contained in:
parent
377b2db537
commit
b81d6e40e1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user