From cdd79cbd2ddf1bd5f2534d2376afe4a78fc6819a Mon Sep 17 00:00:00 2001 From: Naios Date: Wed, 8 Jul 2015 02:10:43 +0200 Subject: [PATCH] some experiments --- test.cpp | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/test.cpp b/test.cpp index c933a90..a91b59c 100644 --- a/test.cpp +++ b/test.cpp @@ -110,6 +110,21 @@ void test_unwrap(std::string const& msg) std::cout << msg << " is unwrappable: " << (fu::is_unwrappable::value ? "true" : "false") << std::endl; } +namespace detail +{ + template + struct function_matches_to_args; + + template + struct function_matches_to_args< + std::function, + std::function> + { + + }; +} + int main(int /*argc*/, char** /*argv*/) { /* @@ -368,13 +383,9 @@ int main(int /*argc*/, char** /*argv*/) make_continuable() .all( - [] { - return CastSpellPromise(10) - .then(CastSpellPromise(15)); - }, - [] { - return CastSpellPromise(20); - }, + CastSpellPromise(10) + .then(CastSpellPromise(15)), + CastSpellPromise(20), [] { return make_continuable([](Callback>&& callback) { @@ -391,6 +402,14 @@ int main(int /*argc*/, char** /*argv*/) }); - std::cout << "ok" << std::endl; + std::function callable = [] + { + std::cout << "ok" << std::endl; + }; + + auto conv_test_1 = std::bind(callable); + + conv_test_1(1, 1); + return 0; }