|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r80991 - trunk/libs/context/src
From: oliver.kowalke_at_[hidden]
Date: 2012-10-15 13:44:15
Author: olli
Date: 2012-10-15 13:44:13 EDT (Mon, 15 Oct 2012)
New Revision: 80991
URL: http://svn.boost.org/trac/boost/changeset/80991
Log:
context: include <new> in guarded_stack_allocator for STDCXX library
Text files modified:
trunk/libs/context/src/guarded_stack_allocator_posix.cpp | 1 +
trunk/libs/context/src/guarded_stack_allocator_windows.cpp | 3 ++-
2 files changed, 3 insertions(+), 1 deletions(-)
Modified: trunk/libs/context/src/guarded_stack_allocator_posix.cpp
==============================================================================
--- trunk/libs/context/src/guarded_stack_allocator_posix.cpp (original)
+++ trunk/libs/context/src/guarded_stack_allocator_posix.cpp 2012-10-15 13:44:13 EDT (Mon, 15 Oct 2012)
@@ -24,6 +24,7 @@
#include <algorithm>
#include <cmath>
#include <cstring>
+#include <new>
#include <stdexcept>
#include <boost/assert.hpp>
Modified: trunk/libs/context/src/guarded_stack_allocator_windows.cpp
==============================================================================
--- trunk/libs/context/src/guarded_stack_allocator_windows.cpp (original)
+++ trunk/libs/context/src/guarded_stack_allocator_windows.cpp 2012-10-15 13:44:13 EDT (Mon, 15 Oct 2012)
@@ -17,6 +17,7 @@
#include <cmath>
#include <csignal>
#include <cstring>
+#include <new>
#include <stdexcept>
#include <boost/assert.hpp>
@@ -100,7 +101,7 @@
std::size_t size = 64 * 1024; // 64 kB
if ( is_stack_unbound() )
return std::max( size, minimum_stacksize() );
-
+
BOOST_ASSERT( maximum_stacksize() >= minimum_stacksize() );
return maximum_stacksize() == minimum_stacksize()
? minimum_stacksize()
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk