From cbade33906dc0d090d5dba6231fb48e359afff95 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Wed, 12 Mar 2025 00:37:23 +0100 Subject: Some more shit --- asl/base/utility.hpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'asl/base/utility.hpp') diff --git a/asl/base/utility.hpp b/asl/base/utility.hpp index 07f8b51..206a5b1 100644 --- a/asl/base/utility.hpp +++ b/asl/base/utility.hpp @@ -11,25 +11,25 @@ namespace std { template -constexpr asl::un_ref_t&& move(T&& t) noexcept // NOLINT +[[nodiscard]] constexpr asl::un_ref_t&& move(T&& t) noexcept // NOLINT { return static_cast&&>(t); } template -constexpr T&& forward(asl::un_ref_t& t) noexcept // NOLINT +[[nodiscard]] constexpr T&& forward(asl::un_ref_t& t) noexcept // NOLINT { return static_cast(t); } template< class T > -constexpr T&& forward(asl::un_ref_t&& t) noexcept // NOLINT +[[nodiscard]] constexpr T&& forward(asl::un_ref_t&& t) noexcept // NOLINT { return static_cast(t); } template -constexpr auto forward_like(U&& x) noexcept -> asl::copy_cref_t // NOLINT +[[nodiscard]] constexpr auto forward_like(U&& x) noexcept -> asl::copy_cref_t // NOLINT { using return_type = asl::copy_cref_t; return static_cast(x); @@ -37,7 +37,6 @@ constexpr auto forward_like(U&& x) noexcept -> asl::copy_cref_t // NOLINT } // namespace std - namespace asl { -- cgit