From e4ef3ccefba9c79fcce57909aedb1cbb493d81c8 Mon Sep 17 00:00:00 2001 From: Denis Blank Date: Sat, 10 Feb 2018 01:37:38 +0100 Subject: [PATCH] Some experiments --- test/playground/test-playground.cpp | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/test/playground/test-playground.cpp b/test/playground/test-playground.cpp index b84630e..d85cc9d 100644 --- a/test/playground/test-playground.cpp +++ b/test/playground/test-playground.cpp @@ -66,7 +66,7 @@ struct my_callable { } }; -int main(int, char**) { +void some_requests() { http_request("github.com").next(my_callable{}); http_request("github.com") | [](std::string) { @@ -115,13 +115,18 @@ int main(int, char**) { .fail([](std::error_condition) { // ... }); +} + +int main(int, char**) { + + std::vector vc{1, 2, 3}; + + cti::map_pack( + [](auto&& continuable) { + // ... + return 0; + }, + vc); return 0; } - -void teststh() { - cti::map_pack([](auto&& continuable) { - // ... - return 0; - }); -}