Disallow integral types which are already handled by variadic ctor.

This commit is contained in:
Marek Kurdej 2016-01-15 17:44:48 +01:00
parent cd6f274cd1
commit ca01daa795

View File

@ -127,7 +127,8 @@ public:
template <typename ValueType,
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
{
elems[0] = value;