Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/GSL.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/gsl/span5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/gsl/span b/include/gsl/span
index 4413a4d..4d5bc7c 100644
--- a/include/gsl/span
+++ b/include/gsl/span
@@ -706,14 +706,11 @@ private:
template <class OtherExtentType>
constexpr storage_type(KnownNotNull data, OtherExtentType ext)
: ExtentType(ext), data_(data.p)
- {
- Expects(ExtentType::size() != dynamic_extent);
- }
+ {}
template <class OtherExtentType>
constexpr storage_type(pointer data, OtherExtentType ext) : ExtentType(ext), data_(data)
{
- Expects(ExtentType::size() != dynamic_extent);
Expects(data || ExtentType::size() == 0);
}