test for BOOST_NO_CXX11_CONSTEXPR

This commit is contained in:
Oliver Kowalke 2016-01-03 18:21:58 +01:00
parent 79ff178d7e
commit 2dd07fc9de

View File

@ -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