From 90e92f480851b3e84c812ee550c97b275e406274 Mon Sep 17 00:00:00 2001 From: Denis Blank Date: Wed, 10 Jun 2015 01:54:04 +0200 Subject: [PATCH] test --- fluent++/Callback.h | 20 ++++++++++---------- test.cpp | 1 + 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/fluent++/Callback.h b/fluent++/Callback.h index 84e8bb8..720a2c2 100644 --- a/fluent++/Callback.h +++ b/fluent++/Callback.h @@ -24,21 +24,21 @@ #include "functional_unwrap.hpp" -template +template using Callback = std::function; -template +template using SharedCallback = std::shared_ptr>; -template +template using WeakCallback = std::weak_ptr>; namespace detail { - template + template struct do_unwrap_callback; - template + template struct do_unwrap_callback> { typedef Callback CallbackType; @@ -48,21 +48,21 @@ namespace detail typedef WeakCallback WeakCallbackType; }; - template + template using unwrap_callback = do_unwrap_callback<::fu::argument_type_of_t<_CTy>>; } // detail -template +template using callback_of_t = typename detail::unwrap_callback<_CTy>::CallbackType; -template +template using shared_callback_of_t = typename detail::unwrap_callback<_CTy>::SharedCallbackType; -template +template using weak_callback_of_t = typename detail::unwrap_callback<_CTy>::WeakCallbackType; -template +template inline typename shared_callback_of_t<_CTy> make_shared_callback(_CTy&& callback) { diff --git a/test.cpp b/test.cpp index e984b9c..25aece8 100644 --- a/test.cpp +++ b/test.cpp @@ -6,6 +6,7 @@ #include #include +#include void CastSpell(int id, Callback const& callback) {