mirror of
https://github.com/boostorg/coroutine2.git
synced 2025-05-10 07:34:03 +00:00
test for BOOST_NO_CXX11_CONSTEXPR
This commit is contained in:
parent
79ff178d7e
commit
2dd07fc9de
@ -31,7 +31,7 @@ template< typename ControlBlock, typename StackAllocator, typename Fn >
|
|||||||
ControlBlock * create_control_block( StackAllocator salloc, Fn && fn) {
|
ControlBlock * create_control_block( StackAllocator salloc, Fn && fn) {
|
||||||
auto sctx = salloc.allocate();
|
auto sctx = salloc.allocate();
|
||||||
// reserve space for control structure
|
// reserve space for control structure
|
||||||
#if defined(BOOST_NO_CXX14_CONSTEXPR) || defined(BOOST_NO_CXX11_STD_ALIGN)
|
#if defined(BOOST_NO_CXX11_CONSTEXPR) || defined(BOOST_NO_CXX11_STD_ALIGN)
|
||||||
void * sp = static_cast< char * >( sctx.sp) - sizeof( ControlBlock);
|
void * sp = static_cast< char * >( sctx.sp) - sizeof( ControlBlock);
|
||||||
const std::size_t size = sctx.size - sizeof( ControlBlock);
|
const std::size_t size = sctx.size - sizeof( ControlBlock);
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user