summaryrefslogtreecommitdiff
path: root/asl/base/defer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'asl/base/defer.hpp')
-rw-r--r--asl/base/defer.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/asl/base/defer.hpp b/asl/base/defer.hpp
index b6d52af..e881d8a 100644
--- a/asl/base/defer.hpp
+++ b/asl/base/defer.hpp
@@ -6,8 +6,7 @@
namespace asl
{
-// @Todo Add invokable check
-template<typename Callback>
+template<invocable Callback>
class DeferCallback
{
Callback m_callback;
@@ -36,8 +35,7 @@ public:
struct DeferFactory
{
- // @Todo Add invokable check
- template<typename Callback>
+ template<invocable Callback>
DeferCallback<Callback> operator<<(Callback&& callback) const
{
return DeferCallback<Callback>(ASL_FWD(callback));