From 8e5b41b8ab25c85f7328ffadcee55c1accb9b28e Mon Sep 17 00:00:00 2001 From: Denis Blank Date: Fri, 19 Jun 2015 00:04:29 +0200 Subject: [PATCH] test --- include/Continuable.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/Continuable.h b/include/Continuable.h index bcd849f..633932a 100644 --- a/include/Continuable.h +++ b/include/Continuable.h @@ -271,20 +271,20 @@ namespace detail } template - static void _all(_CTy&&...) + _ContinuableImpl& _all(_CTy&&...) { typedef multiple_all_chainer<_CTy...> type; + return *this; } /// Placeholder template - _ContinuableImpl& all(_CTy&&... functionals) + auto all(_CTy&&... functionals) + -> decltype((_ContinuableImpl*)(nullptr)-> + _all(box_continuable(std::forward<_CTy>(std::declval<_CTy>))...)) { - typedef multiple_all_chainer<_CTy...> type; - - _all(box_continuable(std::forward<_CTy>(functionals))...); - return *this; + return _all(box_continuable(std::forward<_CTy>(functionals))...); } /// Placeholder