diff --git a/include/blt/std/ranges.h b/include/blt/std/ranges.h index b45601f..496e139 100644 --- a/include/blt/std/ranges.h +++ b/include/blt/std/ranges.h @@ -291,66 +291,66 @@ namespace blt constexpr span() noexcept: size_(0), data_(nullptr) {} - template = true> + template = true> constexpr explicit span(It first, size_type count): size_(count), data_(&*first) {} - template = true> + template = true> constexpr span(It first, size_type count): size_(count), data_(&*first) {} - template = true> + template = true> constexpr explicit span(It first, End last): size_(&*last - &*first), data_(&*first) {} - template = true> + template = true> constexpr span(It first, End last): size_(&*last - &*first), data_(&*first) {} - template()))>(*)[], T(*)[]>), bool> = true> constexpr span(element_type (& arr)[N]) noexcept: size_{N}, data_{arr} {} - template()))>(*)[], T(*)[]>), bool> = true> constexpr span(std::array& arr) noexcept: size_(N), data_{arr.data()} {} - template()))>(*)[], T(*)[]>), bool> = true> constexpr span(const std::array& arr) noexcept: size_(N), data_{arr.data()} {} - template>, std::enable_if_t< + template>, typename std::enable_if_t< extent != dynamic_extent && span_detail::is_cont_v && std::is_convertible_v()))>(*)[], T(*)[]>, bool> = true> explicit constexpr span(R&& range): size_(std::size(range)), data_(std::data(range)) {} - template>, std::enable_if_t< + template>, typename std::enable_if_t< extent == dynamic_extent && span_detail::is_cont_v && std::is_convertible_v()))>(*)[], T(*)[]>, bool> = true> constexpr span(R&& range): size_(std::size(range)), data_(std::data(range)) {} - template, bool> = true> + template, bool> = true> explicit constexpr span(std::initializer_list il) noexcept: size_(il.size()), data_(&il.begin()) {} - template, bool> = true> + template, bool> = true> explicit span(std::initializer_list il) noexcept: size_(il.size()), data_(&il.begin()) {} - template, bool> = true> explicit constexpr span(const span& source) noexcept: size_{source.size()}, data_{source.data()} {} - template, bool> = true> constexpr span(const span& source) noexcept: size_{source.size()}, data_{source.data()} {}