summaryrefslogtreecommitdiff
path: root/asl/base/defer.hpp
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2025-03-06 22:56:56 +0100
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2025-03-06 22:56:56 +0100
commitf0cccbe3285c039553e1fd8b5a5c7830d6087974 (patch)
tree57a0902484ec5c8ba3b9a8e7089ed42f58b6a580 /asl/base/defer.hpp
parent54affafd86e2b7f387345c08e8c7285c775d75e5 (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/base/defer.hpp')
-rw-r--r--asl/base/defer.hpp6
1 files changed, 3 insertions, 3 deletions
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<typename T>
- explicit DeferCallback(T&& callback) : m_callback(ASL_FWD(callback))
+ explicit DeferCallback(T&& callback) : m_callback(std::forward<T>(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<invocable Callback>
DeferCallback<Callback> operator<<(Callback&& callback) const
{
- return DeferCallback<Callback>(ASL_FWD(callback));
+ return DeferCallback<Callback>(std::forward<Callback>(callback));
}
};