Boost logo

Boost :

Subject: [boost] [context] Windows ctx::maximum_stacksize() runtime asserts
From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2012-09-01 19:33:21


Hey all,

The Windows implementation of boost::ctx::maximum_stacksize() does always
assert:

std::size_t maximum_stacksize()
{
    BOOST_ASSERT( ! is_stack_unbound() );
    static std::size_t stacksize = 8 * 1024 * 1024;
    return stacksize;
}

That is because is_stack_unbound() will unconditionally return true.
Patch is attached - ok to commit?

Regards Hartmut
---------------
http://boost-spirit.com
http://stellar.cct.lsu.edu




Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk