diff options
Diffstat (limited to 'boost/context/windows/protected_fixedsize_stack.hpp')
-rw-r--r-- | boost/context/windows/protected_fixedsize_stack.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/boost/context/windows/protected_fixedsize_stack.hpp b/boost/context/windows/protected_fixedsize_stack.hpp index 478c8c4ae1..e6efee62cf 100644 --- a/boost/context/windows/protected_fixedsize_stack.hpp +++ b/boost/context/windows/protected_fixedsize_stack.hpp @@ -31,6 +31,10 @@ namespace context { template< typename traitsT > class basic_protected_fixedsize_stack { private: +#if defined(BOOST_USE_WINFIBERS) + friend class execution_context; +#endif + std::size_t size_; public: @@ -74,8 +78,10 @@ public: void deallocate( stack_context & sctx) { BOOST_ASSERT( sctx.sp); +#if defined(BOOST_USE_WINFIBERS) BOOST_ASSERT( traits_type::minimum_size() <= sctx.size); BOOST_ASSERT( traits_type::is_unbounded() || ( traits_type::maximum_size() >= sctx.size) ); +#endif void * vp = static_cast< char * >( sctx.sp) - sctx.size; ::VirtualFree( vp, 0, MEM_RELEASE); |