From 7b4831f5b2458895522fbb7d98eea6cf60fadd3b Mon Sep 17 00:00:00 2001 From: Naios Date: Tue, 21 Jul 2015 18:33:10 +0200 Subject: [PATCH] warning: field '_released' will be initialized after field '_callback_insert' --- include/Continuable.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/Continuable.h b/include/Continuable.h index b517d28..8143f7e 100644 --- a/include/Continuable.h +++ b/include/Continuable.h @@ -92,12 +92,13 @@ public: typedef std::function&&)> ForwardFunction; private: + /// Was the continuable released (invoked or transfered ownership) already? + bool _released; + /// Functional which expects a callback that is inserted from the Continuable /// to chain everything together ForwardFunction _callback_insert; - bool _released; - template void invoke(_CTy&& callback) {