|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r54479 - in sandbox/monotonic/boost/ptr_container: . detail
From: christian.schladetsch_at_[hidden]
Date: 2009-06-28 18:06:02
Author: cschladetsch
Date: 2009-06-28 18:06:01 EDT (Sun, 28 Jun 2009)
New Revision: 54479
URL: http://svn.boost.org/trac/boost/changeset/54479
Log:
fixes for GCC
Text files modified:
sandbox/monotonic/boost/ptr_container/detail/reversible_ptr_container.hpp | 3 ++-
sandbox/monotonic/boost/ptr_container/ptr_sequence_adapter.hpp | 4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)
Modified: sandbox/monotonic/boost/ptr_container/detail/reversible_ptr_container.hpp
==============================================================================
--- sandbox/monotonic/boost/ptr_container/detail/reversible_ptr_container.hpp (original)
+++ sandbox/monotonic/boost/ptr_container/detail/reversible_ptr_container.hpp 2009-06-28 18:06:01 EDT (Sun, 28 Jun 2009)
@@ -239,7 +239,8 @@
ForwardIterator last )
{
BOOST_ASSERT( first != last );
- scoped_deleter sd( first, last, get_allocator() );
+ allocator_type alloc = get_allocator();
+ scoped_deleter sd( first, last, alloc );
insert_clones_and_release( sd, end() );
}
Modified: sandbox/monotonic/boost/ptr_container/ptr_sequence_adapter.hpp
==============================================================================
--- sandbox/monotonic/boost/ptr_container/ptr_sequence_adapter.hpp (original)
+++ sandbox/monotonic/boost/ptr_container/ptr_sequence_adapter.hpp 2009-06-28 18:06:01 EDT (Sun, 28 Jun 2009)
@@ -244,8 +244,8 @@
void push_back( value_type x ) // strong
{
this->enforce_null_policy( x, "Null pointer in 'push_back()'" );
-
- auto_type ptr( x, this->base().get_allocator() ); // notrow
+ allocator_type alloc = this->base().get_allocator();
+ auto_type ptr( x, alloc ); // notrow
this->base().push_back( x ); // strong, commit
ptr.release(); // nothrow
}
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