summaryrefslogtreecommitdiff
path: root/asl/types/span.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'asl/types/span.hpp')
-rw-r--r--asl/types/span.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/asl/types/span.hpp b/asl/types/span.hpp
index eff6ac7..bb2257a 100644
--- a/asl/types/span.hpp
+++ b/asl/types/span.hpp
@@ -75,21 +75,21 @@ public:
}
template<isize_t N>
- constexpr span(T (&array)[N]) // NOLINT(*-explicit-conversions)
+ constexpr span(T (&array)[N]) // NOLINT(*explicit*)
requires (kIsDynamic)
: m_data{array}
, m_size{N}
{}
template<isize_t N>
- constexpr span(T (&array)[N]) // NOLINT(*-explicit-conversions)
+ constexpr span(T (&array)[N]) // NOLINT(*explicit*)
requires (!kIsDynamic) && (N == kSize)
: m_data{array}
{}
template<is_object U, isize_t kOtherSize>
constexpr explicit(!kIsDynamic)
- span(const span<U, kOtherSize>& other) // NOLINT(*-explicit-conversions)
+ span(const span<U, kOtherSize>& other)
requires (
(
kIsDynamic ||
@@ -217,7 +217,7 @@ template<is_object T, isize_t kSize>
inline span<const byte> as_bytes(span<T, kSize> s)
{
return span<const byte>(
- reinterpret_cast<const byte*>(s.data()),
+ reinterpret_cast<const byte*>(s.data()), // NOLINT(*-reinterpret-cast)
s.size_bytes());
}
@@ -226,7 +226,7 @@ inline span<byte> as_mutable_bytes(span<T, kSize> s)
requires (!is_const<T>)
{
return span<byte>(
- reinterpret_cast<byte*>(s.data()),
+ reinterpret_cast<byte*>(s.data()), // NOLINT(*-reinterpret-cast)
s.size_bytes());
}