diff options
Diffstat (limited to 'toolsrc/include/vcpkg/base/span.h')
| -rw-r--r-- | toolsrc/include/vcpkg/base/span.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/toolsrc/include/vcpkg/base/span.h b/toolsrc/include/vcpkg/base/span.h index 221cccc8c..a66205332 100644 --- a/toolsrc/include/vcpkg/base/span.h +++ b/toolsrc/include/vcpkg/base/span.h @@ -3,6 +3,7 @@ #include <array> #include <cstddef> #include <initializer_list> +#include <type_traits> #include <vector> namespace vcpkg @@ -29,7 +30,7 @@ namespace vcpkg { } - template<size_t N, class = std::enable_if_t<std::is_const_v<T>>> + template<size_t N, class = std::enable_if_t<std::is_const<T>::value>> constexpr Span(std::remove_const_t<T> (&arr)[N]) noexcept : m_ptr(arr), m_count(N) { } |
