From ca01daa79500d6578627d123c21b6bb46810c4f2 Mon Sep 17 00:00:00 2001 From: Marek Kurdej Date: Fri, 15 Jan 2016 17:44:48 +0100 Subject: [PATCH] Disallow integral types which are already handled by variadic ctor. --- include/span.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/span.h b/include/span.h index 6ecad64..e922eac 100644 --- a/include/span.h +++ b/include/span.h @@ -127,7 +127,8 @@ public: template ::value>> + std::is_convertible::value && + !std::is_integral::value>> constexpr index(ValueType value) noexcept { elems[0] = value;