mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Disallow integral types which are already handled by variadic ctor.
This commit is contained in:
parent
cd6f274cd1
commit
ca01daa795
@ -127,7 +127,8 @@ public:
|
|||||||
|
|
||||||
template <typename ValueType,
|
template <typename ValueType,
|
||||||
typename = std::enable_if_t<(Rank == 1) &&
|
typename = std::enable_if_t<(Rank == 1) &&
|
||||||
std::is_convertible<ValueType, value_type>::value>>
|
std::is_convertible<ValueType, value_type>::value &&
|
||||||
|
!std::is_integral<ValueType>::value>>
|
||||||
constexpr index(ValueType value) noexcept
|
constexpr index(ValueType value) noexcept
|
||||||
{
|
{
|
||||||
elems[0] = value;
|
elems[0] = value;
|
||||||
|
Loading…
Reference in New Issue
Block a user