@@ -93,16 +93,15 @@ class span : public detail::span_base<T, Extent> {
9393 : base_t{first, sore}, ptr{stdx::to_address (first)} {}
9494
9595 template <typename U, std::size_t N>
96- // NOLINTNEXTLINE(google-explicit-constructor)
97- constexpr span (std::array<U, N> &arr LIFETIMEBOUND ) noexcept
96+ constexpr explicit (false ) span(std::array<U, N> &arr LIFETIMEBOUND ) noexcept
9897 : base_t{std::data (arr), N}, ptr{std::data (arr)} {
9998 static_assert (Extent == dynamic_extent or Extent <= N,
10099 " Span extends beyond available storage" );
101100 }
102101
103102 template <typename U, std::size_t N>
104- // NOLINTNEXTLINE(google- explicit-constructor )
105- constexpr span (std::array<U, N> const &arr LIFETIMEBOUND ) noexcept
103+ constexpr explicit ( false )
104+ span(std::array<U, N> const &arr LIFETIMEBOUND ) noexcept
106105 : base_t{std::data (arr), N}, ptr{std::data (arr)} {
107106 static_assert (Extent == dynamic_extent or Extent <= N,
108107 " Span extends beyond available storage" );
@@ -112,8 +111,7 @@ class span : public detail::span_base<T, Extent> {
112111 template <std::size_t N> using arr_t = type_identity_t <element_type> (&)[N];
113112
114113 template <std::size_t N>
115- // NOLINTNEXTLINE(google-explicit-constructor)
116- constexpr span (arr_t <N> arr LIFETIMEBOUND ) noexcept
114+ constexpr explicit (false ) span(arr_t <N> arr LIFETIMEBOUND ) noexcept
117115 : base_t{std::data (arr), N}, ptr{std::data (arr)} {
118116 static_assert (Extent == dynamic_extent or Extent <= N,
119117 " Span extends beyond available storage" );
@@ -136,8 +134,7 @@ class span : public detail::span_base<T, Extent> {
136134
137135 template <class U , std::size_t N>
138136 requires (dependent_extent<U> == dynamic_extent or N != dynamic_extent)
139- // NOLINTNEXTLINE(google-explicit-constructor)
140- constexpr span (span<U, N> const &s) noexcept
137+ constexpr explicit (false ) span(span<U, N> const &s) noexcept
141138 : base_t{s.data (), s.size ()}, ptr{s.data ()} {}
142139
143140 [[nodiscard]] constexpr auto data () const noexcept -> pointer {
0 commit comments