From d9d6ea81966fba0905a1c311433cf4aea24ed357 Mon Sep 17 00:00:00 2001 From: "Jordan Maples [MSFT]" <49793787+JordanMaples@users.noreply.github.com> Date: Mon, 3 Feb 2020 13:53:38 -0800 Subject: [PATCH] remove comparison to dynamic_extent --- include/gsl/span | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/gsl/span b/include/gsl/span index 7c5b24d..377181c 100644 --- a/include/gsl/span +++ b/include/gsl/span @@ -517,13 +517,13 @@ public: constexpr reference front() const noexcept { - Expects(size() != dynamic_extent && size() > 0); + Expects(size() > 0); return data()[0]; } constexpr reference back() const noexcept { - Expects(size() != dynamic_extent && size() > 0); + Expects(size() > 0); return data()[size() - 1]; }