diff --git a/fluent/Callback.h b/fluent/Callback.h index 343b6e0..f2082cb 100644 --- a/fluent/Callback.h +++ b/fluent/Callback.h @@ -26,15 +26,15 @@ #include "functional_unwrap.hpp" -/// A general purpose Callback type (Callable/ Invokeable) +/// A general purpose void returing callback type (`std::function`). template using Callback = std::function; -/// A Callback wrapped in a std::shared_ptr +/// A callback wrapped in a std::shared_ptr template using SharedCallback = std::shared_ptr>; -/// A Callback wrapped in a std::weak_ptr +/// A callback wrapped in a std::weak_ptr template using WeakCallback = std::weak_ptr>; diff --git a/fluent/Continuable.h b/fluent/Continuable.h index 0c57241..14897a3 100644 --- a/fluent/Continuable.h +++ b/fluent/Continuable.h @@ -35,27 +35,25 @@ namespace detail typedef ContinuableState, void> DefaultContinuableState; + // ContinuableImpl Forward definition + template + class _ContinuableImpl; + /// Corrects void return types from functional types which should be Continuable> - /* template struct convert_void_to_continuable; template<> struct convert_void_to_continuable { - typedef Continuable> type; + typedef _ContinuableImpl> type; }; - template - struct convert_void_to_continuable> + template + struct convert_void_to_continuable<_ContinuableImpl<_State, _CTy>> { - typedef Continuable<_CArgs...> type; + typedef _ContinuableImpl<_State, _CTy> type; }; - */ - - // ContinuableImpl Forward definition - template - class _ContinuableImpl; template class _ContinuableImpl, std::function> @@ -64,9 +62,6 @@ namespace detail template friend class _ContinuableImpl; - typedef ContinuableState<_STy...> MyState; - typedef Callback<_ATy...> MyCallback; - public: typedef std::function&&)> ForwardFunction;