mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
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:
parent
05bf567dcb
commit
c87c123d1b
@ -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)>>
|
||||||
|
Loading…
Reference in New Issue
Block a user