Eliminate local variable that was shadowing data member variable stack_ctx in context object, which resulted in an assert when the context object was destructed.

This commit is contained in:
dnotestein 2014-07-24 15:18:53 -04:00
parent a254e5ff28
commit 34296fbb4a

View file

@ -52,7 +52,6 @@ namespace fc {
cur_task(0)
{
#if BOOST_VERSION >= 105400
bco::stack_context stack_ctx;
size_t stack_size = bco::stack_allocator::default_stacksize() * 4;
alloc.allocate(stack_ctx, stack_size);
my_context = bc::make_fcontext( stack_ctx.sp, stack_ctx.size, sf);