From fae030afa3d8a9755b04714c6ac3a6b7bf6e2464 Mon Sep 17 00:00:00 2001 From: Denis Blank Date: Sun, 18 Nov 2018 17:44:09 +0100 Subject: [PATCH] Fix a compilation error which is caused by regression in one of the MSVC 15.1 updates --- include/continuable/detail/traverse-async.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/continuable/detail/traverse-async.hpp b/include/continuable/detail/traverse-async.hpp index 5e05159..07a7326 100644 --- a/include/continuable/detail/traverse-async.hpp +++ b/include/continuable/detail/traverse-async.hpp @@ -231,7 +231,8 @@ struct static_async_range { } template - constexpr auto relocate() const noexcept { + constexpr auto relocate(std::integral_constant) const + noexcept { return static_async_range{target_}; } @@ -422,8 +423,8 @@ public: template void async_traverse_static_async_range( std::integer_sequence, Current&& current) { - int dummy[] = {0, ((void)async_traverse_one_checked( - current.template relocate()), + int dummy[] = {0, (async_traverse_one_checked(current.relocate( + std::integral_constant{})), 0)...}; (void)dummy; (void)current;