mirror of
https://github.com/Naios/continuable.git
synced 2026-02-09 03:06:41 +08:00
Fix a compilation error which is caused by regression in one of the MSVC 15.1 updates
This commit is contained in:
parent
2cfbdaf673
commit
fae030afa3
@ -231,7 +231,8 @@ struct static_async_range {
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <std::size_t Position>
|
template <std::size_t Position>
|
||||||
constexpr auto relocate() const noexcept {
|
constexpr auto relocate(std::integral_constant<std::size_t, Position>) const
|
||||||
|
noexcept {
|
||||||
return static_async_range<Target, Position, End>{target_};
|
return static_async_range<Target, Position, End>{target_};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -422,8 +423,8 @@ public:
|
|||||||
template <std::size_t... Sequence, typename Current>
|
template <std::size_t... Sequence, typename Current>
|
||||||
void async_traverse_static_async_range(
|
void async_traverse_static_async_range(
|
||||||
std::integer_sequence<std::size_t, Sequence...>, Current&& current) {
|
std::integer_sequence<std::size_t, Sequence...>, Current&& current) {
|
||||||
int dummy[] = {0, ((void)async_traverse_one_checked(
|
int dummy[] = {0, (async_traverse_one_checked(current.relocate(
|
||||||
current.template relocate<Sequence>()),
|
std::integral_constant<std::size_t, Sequence>{})),
|
||||||
0)...};
|
0)...};
|
||||||
(void)dummy;
|
(void)dummy;
|
||||||
(void)current;
|
(void)current;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user