2
0
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:
Oliver Kowalke
2015-12-03 18:29:19 +01:00
parent 3319841788
commit c8071c5373
16 changed files with 48 additions and 38 deletions

View File

@@ -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);
}