From e5d39c4b0a1fc44cf9430ed3125f0eebab8e5403 Mon Sep 17 00:00:00 2001 From: Naios Date: Thu, 11 Jun 2015 03:21:25 +0200 Subject: [PATCH] minor improvements --- fluent/Callback.h | 8 ++++---- fluent/Continuable.h | 2 +- fluent/WeakCallbackContainer.h | 2 +- fluent/functional_unwrap.hpp | 5 ++--- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/fluent/Callback.h b/fluent/Callback.h index 27f2ba8..041f647 100644 --- a/fluent/Callback.h +++ b/fluent/Callback.h @@ -25,7 +25,7 @@ #include "functional_unwrap.hpp" -/// A general purpose Callback type (Callable/Invokeable) +/// A general purpose Callback type (Callable/ Invokeable) template using Callback = std::function; @@ -66,8 +66,8 @@ namespace detail return [=](Args&&... args) { if (auto const callback = weak.lock()) - // FIXME: use std::forward - (*callback)(args...); + // FIXME: use std::forward + (*callback)(args...); }; } }; @@ -113,4 +113,4 @@ inline auto make_weak_wrapped_callback(_CTy const& callback) return detail::WeakProxyFactory<_CTy>::CreateProxy(callback); } -#endif /// _CALLBACK_H_ +#endif // _CALLBACK_H_ diff --git a/fluent/Continuable.h b/fluent/Continuable.h index 0527b40..057815c 100644 --- a/fluent/Continuable.h +++ b/fluent/Continuable.h @@ -78,4 +78,4 @@ inline auto make_continuable(_FTy&& functional) return detail::continuable_factory_t<_FTy>::CreateFrom(std::forward<_FTy>(functional)); } -#endif /// _CONTINUABLE_H_ +#endif // _CONTINUABLE_H_ diff --git a/fluent/WeakCallbackContainer.h b/fluent/WeakCallbackContainer.h index b68e997..ed94d90 100644 --- a/fluent/WeakCallbackContainer.h +++ b/fluent/WeakCallbackContainer.h @@ -122,4 +122,4 @@ public: } }; -#endif /// _WEAK_CALLBACK_CONTAINER_H_ +#endif // _WEAK_CALLBACK_CONTAINER_H_ diff --git a/fluent/functional_unwrap.hpp b/fluent/functional_unwrap.hpp index 481f587..67b504d 100644 --- a/fluent/functional_unwrap.hpp +++ b/fluent/functional_unwrap.hpp @@ -28,10 +28,9 @@ namespace fu { + /// Identity class which is used to carry parameter packs. template - struct identity - { - }; + struct identity { }; namespace detail {