diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-03-06 22:56:56 +0100 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-03-06 22:56:56 +0100 |
commit | f0cccbe3285c039553e1fd8b5a5c7830d6087974 (patch) | |
tree | 57a0902484ec5c8ba3b9a8e7089ed42f58b6a580 /asl/types/status.hpp | |
parent | 54affafd86e2b7f387345c08e8c7285c775d75e5 (diff) |
Replace ASL_MOVE, ASL_FWD, and ASL_FWD_LIKE by their std:: equivalent
This is because some compiler stuff and diagnostics tools rely on those
symboles being what they are.
Diffstat (limited to 'asl/types/status.hpp')
-rw-r--r-- | asl/types/status.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/asl/types/status.hpp b/asl/types/status.hpp index 31b6df6..83be5ce 100644 --- a/asl/types/status.hpp +++ b/asl/types/status.hpp @@ -122,7 +122,7 @@ public: return {}; } - constexpr status&& throw_status() && { return ASL_MOVE(*this); } + constexpr status&& throw_status() && { return std::move(*this); } friend void AslFormat(Formatter& f, const status&); @@ -131,9 +131,9 @@ public: { if (s.is_inline()) { - return H::combine(ASL_MOVE(h), s.code()); + return H::combine(std::move(h), s.code()); } - return H::combine(ASL_MOVE(h), s.code(), s.message()); + return H::combine(std::move(h), s.code(), s.message()); } }; @@ -156,6 +156,6 @@ ASL_DEFINE_ERROR_(internal) ASL_DEFINE_ERROR_(runtime) ASL_DEFINE_ERROR_(invalid_argument) -#define ASL_TRY(VALUE) if (VALUE.ok()) {} else { return ASL_MOVE(VALUE).throw_status(); } +#define ASL_TRY(VALUE) if (VALUE.ok()) {} else { return std::move(VALUE).throw_status(); } } // namespace asl |