Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53143 - in trunk: boost/circular_buffer boost/interprocess/containers/container libs/accumulators/example
From: jewillco_at_[hidden]
Date: 2009-05-20 15:46:07


Author: jewillco
Date: 2009-05-20 15:46:06 EDT (Wed, 20 May 2009)
New Revision: 53143
URL: http://svn.boost.org/trac/boost/changeset/53143

Log:
More tab and min/max fixes
Text files modified:
   trunk/boost/circular_buffer/base.hpp | 2 +-
   trunk/boost/interprocess/containers/container/stable_vector.hpp | 10 +++++-----
   trunk/libs/accumulators/example/main.cpp | 2 +-
   3 files changed, 7 insertions(+), 7 deletions(-)

Modified: trunk/boost/circular_buffer/base.hpp
==============================================================================
--- trunk/boost/circular_buffer/base.hpp (original)
+++ trunk/boost/circular_buffer/base.hpp 2009-05-20 15:46:06 EDT (Wed, 20 May 2009)
@@ -709,7 +709,7 @@
              iterators pointing to the first <code>n</code> elements; does not invalidate any iterators if the
              <code>circular_buffer</code> is full.
         \par Complexity
- Linear (in <code>std::min(m, n)</code>); constant if the <code>circular_buffer</code> is full.
+ Linear (in <code>(std::min)(m, n)</code>); constant if the <code>circular_buffer</code> is full.
         \sa <code>std::rotate</code>
     */
     void rotate(const_iterator new_begin) {

Modified: trunk/boost/interprocess/containers/container/stable_vector.hpp
==============================================================================
--- trunk/boost/interprocess/containers/container/stable_vector.hpp (original)
+++ trunk/boost/interprocess/containers/container/stable_vector.hpp 2009-05-20 15:46:06 EDT (Wed, 20 May 2009)
@@ -263,12 +263,12 @@
    friend class iterator<T, const T, typename boost::pointer_to_other<Pointer, T>::type>;
 
    public:
- typedef std::random_access_iterator_tag iterator_category;
- typedef Value value_type;
- typedef typename std::iterator_traits
+ typedef std::random_access_iterator_tag iterator_category;
+ typedef Value value_type;
+ typedef typename std::iterator_traits
       <Pointer>::difference_type difference_type;
- typedef Pointer pointer;
- typedef Value & reference;
+ typedef Pointer pointer;
+ typedef Value & reference;
 
    iterator()
    {}

Modified: trunk/libs/accumulators/example/main.cpp
==============================================================================
--- trunk/libs/accumulators/example/main.cpp (original)
+++ trunk/libs/accumulators/example/main.cpp 2009-05-20 15:46:06 EDT (Wed, 20 May 2009)
@@ -54,7 +54,7 @@
     // by value.
     //std::for_each(data.begin(), data.end(), bind<void>(ref(acc), _1));
 
- std::cout << " min(acc) = " << (min)(acc) << std::endl;
+ std::cout << " min""(acc) = " << (min)(acc) << std::endl; // Extra quotes are to prevent complaints from Boost inspect tool
     std::cout << " mean(acc) = " << mean(acc) << std::endl;
 
     // since mean depends on count and sum, we can get their results, too.


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