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).
This commit is contained in:
beinhaerter 2018-02-14 02:42:37 +01:00 committed by Neil MacIntosh
parent 05bf567dcb
commit c87c123d1b

View File

@ -1052,7 +1052,7 @@ struct dim_t<dynamic_range>
{ {
static const std::ptrdiff_t value = dynamic_range; static const std::ptrdiff_t value = dynamic_range;
const std::ptrdiff_t dvalue; 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 <std::ptrdiff_t N, class = std::enable_if_t<(N >= 0)>> template <std::ptrdiff_t N, class = std::enable_if_t<(N >= 0)>>