diff options
Diffstat (limited to 'asl/base/utility.hpp')
-rw-r--r-- | asl/base/utility.hpp | 9 |
1 files changed, 4 insertions, 5 deletions
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<typename T> -constexpr asl::un_ref_t<T>&& move(T&& t) noexcept // NOLINT +[[nodiscard]] constexpr asl::un_ref_t<T>&& move(T&& t) noexcept // NOLINT { return static_cast<asl::un_ref_t<T>&&>(t); } template<typename T> -constexpr T&& forward(asl::un_ref_t<T>& t) noexcept // NOLINT +[[nodiscard]] constexpr T&& forward(asl::un_ref_t<T>& t) noexcept // NOLINT { return static_cast<T&&>(t); } template< class T > -constexpr T&& forward(asl::un_ref_t<T>&& t) noexcept // NOLINT +[[nodiscard]] constexpr T&& forward(asl::un_ref_t<T>&& t) noexcept // NOLINT { return static_cast<T&&>(t); } template<typename T, typename U> -constexpr auto forward_like(U&& x) noexcept -> asl::copy_cref_t<T, U> // NOLINT +[[nodiscard]] constexpr auto forward_like(U&& x) noexcept -> asl::copy_cref_t<T, U> // NOLINT { using return_type = asl::copy_cref_t<T, U&&>; return static_cast<return_type>(x); @@ -37,7 +37,6 @@ constexpr auto forward_like(U&& x) noexcept -> asl::copy_cref_t<T, U> // NOLINT } // namespace std - namespace asl { |