From c87c123d1b3e64ae2cf725584f0c004da4d90f1c Mon Sep 17 00:00:00 2001 From: beinhaerter <34543625+beinhaerter@users.noreply.github.com> Date: Wed, 14 Feb 2018 02:42:37 +0100 Subject: [PATCH] Fix code analysis warning in multi_span (#606) Prevents MSVC code analysis warning ...\gsl\include\gsl\multi_span(1055): warning C26440: Function 'gsl::dim_t<-1>::dim_t<-1>' can be declared 'noexcept' (f.6: http://go.microsoft.com/fwlink/?linkid=853927). --- include/gsl/multi_span | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gsl/multi_span b/include/gsl/multi_span index dbca3a4..6ffd624 100644 --- a/include/gsl/multi_span +++ b/include/gsl/multi_span @@ -1052,7 +1052,7 @@ struct dim_t { static const std::ptrdiff_t value = dynamic_range; const std::ptrdiff_t dvalue; - dim_t(std::ptrdiff_t size) : dvalue(size) {} + constexpr dim_t(std::ptrdiff_t size) GSL_NOEXCEPT : dvalue(size) {} }; template = 0)>>