mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-20 02:32:19 +00:00
fix data_t for MSVC 14 (initializer-list issue)
This commit is contained in:
@@ -222,7 +222,7 @@ context::resume( detail::spinlock_lock & lk) noexcept {
|
||||
// active_ will point to `this`
|
||||
// prev will point to previous active context
|
||||
std::swap( active_, prev);
|
||||
data_t d{ & lk, nullptr };
|
||||
data_t d{ & lk };
|
||||
resume_( d);
|
||||
}
|
||||
|
||||
@@ -232,7 +232,7 @@ context::resume( context * ready_ctx) noexcept {
|
||||
// active_ will point to `this`
|
||||
// prev will point to previous active context
|
||||
std::swap( active_, prev);
|
||||
data_t d{ nullptr, ready_ctx };
|
||||
data_t d{ ready_ctx };
|
||||
resume_( d);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user