warning: field '_released' will be initialized after field '_callback_insert'

This commit is contained in:
Denis Blank 2015-07-21 18:33:10 +02:00 committed by Naios
parent ceba89c470
commit 574ad570ea

View File

@ -92,12 +92,13 @@ public:
typedef std::function<void(Callback<_ATy...>&&)> ForwardFunction; typedef std::function<void(Callback<_ATy...>&&)> ForwardFunction;
private: private:
/// Was the continuable released (invoked or transfered ownership) already?
bool _released;
/// Functional which expects a callback that is inserted from the Continuable /// Functional which expects a callback that is inserted from the Continuable
/// to chain everything together /// to chain everything together
ForwardFunction _callback_insert; ForwardFunction _callback_insert;
bool _released;
template <typename _CTy> template <typename _CTy>
void invoke(_CTy&& callback) void invoke(_CTy&& callback)
{ {