From 48c6abf5f22cc6496f86261e4df491e30da60406 Mon Sep 17 00:00:00 2001 From: Denis Blank Date: Mon, 10 Aug 2020 18:29:46 +0200 Subject: [PATCH] Ensure that the example given in #34 compiles in the CI * Ref #34 --- .../single/test-continuable-traverse-async.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/unit-test/single/test-continuable-traverse-async.cpp b/test/unit-test/single/test-continuable-traverse-async.cpp index 9366871..5988cb2 100644 --- a/test/unit-test/single/test-continuable-traverse-async.cpp +++ b/test/unit-test/single/test-continuable-traverse-async.cpp @@ -383,3 +383,16 @@ TEST(async_complete_invalidation, check_whether_frame_released) { EXPECT_EQ(value.use_count(), 1L); } + +// #34 when_seq gives error on VS2019 +TEST(regression_tests, msvc_14_2_vs2019_build_fix) { + ASSERT_ASYNC_COMPLETION( + cti::when_seq(0, 1, cti::make_ready_continuable(2, 3), 4, 5) + .then([](int r0, int r1, int r2, int r3, int r4) { + ASSERT_EQ(r0, 0); + ASSERT_EQ(r1, 1); + ASSERT_EQ(r2, 2); + ASSERT_EQ(r3, 3); + ASSERT_EQ(r4, 4); + })); +}