From f0cccbe3285c039553e1fd8b5a5c7830d6087974 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Thu, 6 Mar 2025 22:56:56 +0100 Subject: 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. --- asl/base/defer.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'asl/base/defer.hpp') diff --git a/asl/base/defer.hpp b/asl/base/defer.hpp index bc5d078..c9c08ba 100644 --- a/asl/base/defer.hpp +++ b/asl/base/defer.hpp @@ -18,14 +18,14 @@ class DeferCallback public: template - explicit DeferCallback(T&& callback) : m_callback(ASL_FWD(callback)) + explicit DeferCallback(T&& callback) : m_callback(std::forward(callback)) { } ASL_DELETE_COPY(DeferCallback); DeferCallback(DeferCallback&& other) : - m_callback(ASL_MOVE(other.m_callback)), m_moved(exchange(other.m_moved, true)) + m_callback(std::move(other.m_callback)), m_moved(exchange(other.m_moved, true)) { } @@ -42,7 +42,7 @@ struct DeferFactory template DeferCallback operator<<(Callback&& callback) const { - return DeferCallback(ASL_FWD(callback)); + return DeferCallback(std::forward(callback)); } }; -- cgit