Boost logo

Boost-Commit :

From: markus.schoepflin_at_[hidden]
Date: 2007-09-28 06:28:26


Author: schoepflin
Date: 2007-09-28 06:28:26 EDT (Fri, 28 Sep 2007)
New Revision: 39587
URL: http://svn.boost.org/trac/boost/changeset/39587

Log:
Added two missing fwd declarations and a Tru64/CXX specific workaround.
Text files modified:
   trunk/boost/circular_buffer/details.hpp | 8 ++++++++
   trunk/boost/circular_buffer/space_optimized.hpp | 9 +++++++++
   2 files changed, 17 insertions(+), 0 deletions(-)

Modified: trunk/boost/circular_buffer/details.hpp
==============================================================================
--- trunk/boost/circular_buffer/details.hpp (original)
+++ trunk/boost/circular_buffer/details.hpp 2007-09-28 06:28:26 EDT (Fri, 28 Sep 2007)
@@ -24,6 +24,14 @@
 
 template <class Traits> struct nonconst_traits;
 
+template<class ForwardIterator, class Diff, class T, class Alloc>
+void uninitialized_fill_n_with_alloc(
+ ForwardIterator first, Diff n, const T& item, Alloc& alloc);
+
+template<class InputIterator, class ForwardIterator, class Alloc>
+ForwardIterator uninitialized_copy_with_alloc(
+ InputIterator first, InputIterator last, ForwardIterator dest, Alloc& alloc);
+
 /*!
     \struct const_traits
     \brief Defines the data types for a const iterator.

Modified: trunk/boost/circular_buffer/space_optimized.hpp
==============================================================================
--- trunk/boost/circular_buffer/space_optimized.hpp (original)
+++ trunk/boost/circular_buffer/space_optimized.hpp 2007-09-28 06:28:26 EDT (Fri, 28 Sep 2007)
@@ -14,6 +14,7 @@
 #endif
 
 #include <boost/type_traits/is_same.hpp>
+#include <boost/detail/workaround.hpp>
 
 namespace boost {
 
@@ -1234,7 +1235,11 @@
                 ensure_reserve(new_capacity, new_size));
         }
 #if BOOST_CB_ENABLE_DEBUG
+# if BOOST_WORKAROUND(__DECCXX_VER, BOOST_TESTED_AT(70190006))
+ this->invalidate_iterators_except(end());
+# else
         invalidate_iterators_except(end());
+# endif
 #endif
     }
 
@@ -1254,7 +1259,11 @@
         circular_buffer<T, Alloc>::set_capacity(
             ensure_reserve(new_capacity, size()));
 #if BOOST_CB_ENABLE_DEBUG
+# if BOOST_WORKAROUND(__DECCXX_VER, BOOST_TESTED_AT(70190006))
+ this->invalidate_iterators_except(end());
+# else
         invalidate_iterators_except(end());
+# endif
 #endif
     }
 


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