From af4e29f8c071b089fb46b5d8b964dd2b1fb3f57a Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Tue, 11 Mar 2025 23:51:51 +0100 Subject: Remake deref --- asl/types/span.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'asl/types/span.hpp') 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 - constexpr span(T (&array)[N]) // NOLINT(*-explicit-conversions) + constexpr span(T (&array)[N]) // NOLINT(*explicit*) requires (kIsDynamic) : m_data{array} , m_size{N} {} template - constexpr span(T (&array)[N]) // NOLINT(*-explicit-conversions) + constexpr span(T (&array)[N]) // NOLINT(*explicit*) requires (!kIsDynamic) && (N == kSize) : m_data{array} {} template constexpr explicit(!kIsDynamic) - span(const span& other) // NOLINT(*-explicit-conversions) + span(const span& other) requires ( ( kIsDynamic || @@ -217,7 +217,7 @@ template inline span as_bytes(span s) { return span( - reinterpret_cast(s.data()), + reinterpret_cast(s.data()), // NOLINT(*-reinterpret-cast) s.size_bytes()); } @@ -226,7 +226,7 @@ inline span as_mutable_bytes(span s) requires (!is_const) { return span( - reinterpret_cast(s.data()), + reinterpret_cast(s.data()), // NOLINT(*-reinterpret-cast) s.size_bytes()); } -- cgit