From c5c875a5f5c354009229df2ac020555d52cf3bf9 Mon Sep 17 00:00:00 2001 From: Naios Date: Fri, 3 Jul 2015 19:28:11 +0200 Subject: [PATCH] enable non copyable test --- test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test.cpp b/test.cpp index 1438603..c933a90 100644 --- a/test.cpp +++ b/test.cpp @@ -376,15 +376,15 @@ int main(int /*argc*/, char** /*argv*/) return CastSpellPromise(20); }, [] { - return make_continuable([](Callback*/>&& callback) + return make_continuable([](Callback>&& callback) { - callback(true, false, 0.3f/*, std::unique_ptr(new std::string("oh, all work is done!"))*/); + callback(true, false, 0.3f, std::unique_ptr(new std::string("oh, all work is done!"))); }); }, TrivialPromise()) - .then([](SpellCastResult r0, SpellCastResult r1, bool r2, bool r3, double r4/*, std::unique_ptr message*/) + .then([](SpellCastResult r0, SpellCastResult r1, bool r2, bool r3, double r4, std::unique_ptr message) { - return TrivialPromise("Lets see... ")/*.then(Log(*message))*/; + return TrivialPromise("Lets see... ").then(Log(*message)); }) .then([] {