From 800f38923a4b03f3b22639ba169afbe5edb6c9f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Vr=C3=A1til?= Date: Sun, 8 Feb 2015 13:12:50 +0100 Subject: Async: Move Async::PrevOut to Async::detail::prevOut --- async/src/async.h | 13 ++++--------- async/src/async_impl.h | 5 +++++ 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'async/src') diff --git a/async/src/async.h b/async/src/async.h index 8523df3..95b28d7 100644 --- a/async/src/async.h +++ b/async/src/async.h @@ -66,11 +66,6 @@ class ExecutorBase; typedef QSharedPointer ExecutorBasePtr; -template -struct PreviousOut { - using type = typename std::tuple_element<0, std::tuple>::type; -}; - class ExecutorBase { template @@ -113,7 +108,7 @@ protected: }; template -class ThenExecutor: public Executor::type, Out, In ...> +class ThenExecutor: public Executor::type, Out, In ...> { public: ThenExecutor(ThenTask then, ErrorHandler errorHandler, const ExecutorBasePtr &parent); @@ -139,7 +134,7 @@ public: }; template -class SyncThenExecutor : public Executor::type, Out, In ...> +class SyncThenExecutor : public Executor::type, Out, In ...> { public: SyncThenExecutor(SyncThenTask then, ErrorHandler errorHandler, const ExecutorBasePtr &parent); @@ -430,7 +425,7 @@ void Executor::exec() template ThenExecutor::ThenExecutor(ThenTask then, ErrorHandler error, const ExecutorBasePtr &parent) - : Executor::type, Out, In ...>(error, parent) + : Executor::type, Out, In ...>(error, parent) { this->mFunc = then; } @@ -492,7 +487,7 @@ ReduceExecutor::ReduceExecutor(ReduceTask reduce, ErrorHandler template SyncThenExecutor::SyncThenExecutor(SyncThenTask then, ErrorHandler errorHandler, const ExecutorBasePtr &parent) - : Executor::type, Out, In ...>(errorHandler, parent) + : Executor::type, Out, In ...>(errorHandler, parent) { this->mFunc = then; } diff --git a/async/src/async_impl.h b/async/src/async_impl.h index e281bda..58f6ced 100644 --- a/async/src/async_impl.h +++ b/async/src/async_impl.h @@ -40,6 +40,11 @@ struct isIterable +struct prevOut { + using type = typename std::tuple_element<0, std::tuple>::type; +}; + } // namespace Detail } // namespace Async -- cgit v1.2.3