diff --git a/include/gsl/multi_span b/include/gsl/multi_span index 6aeabc8..e381861 100644 --- a/include/gsl/multi_span +++ b/include/gsl/multi_span @@ -1332,10 +1332,10 @@ public: // construct from const std::array template - constexpr multi_span(const std::array, N>& arr) - : multi_span(arr.data(), static_bounds()) + constexpr multi_span(const std::array& arr) + : multi_span(arr.data(), bounds_type{static_bounds{}}) { - static_assert(std::is_convertible>::value, + static_assert(std::is_convertible(*)[]>::value, "Cannot convert from source type to target multi_span type."); static_assert(std::is_convertible, bounds_type>::value, "You cannot construct a multi_span from a std::array of smaller size.");