Boost logo

Boost-Commit :

From: jano_gaspar_at_[hidden]
Date: 2008-08-20 12:13:07


Author: jano_gaspar
Date: 2008-08-20 12:13:07 EDT (Wed, 20 Aug 2008)
New Revision: 48264
URL: http://svn.boost.org/trac/boost/changeset/48264

Log:
circular_buffer: fixed MSVC9 warning
Text files modified:
   branches/release/boost/circular_buffer/details.hpp | 11 +++--------
   1 files changed, 3 insertions(+), 8 deletions(-)

Modified: branches/release/boost/circular_buffer/details.hpp
==============================================================================
--- branches/release/boost/circular_buffer/details.hpp (original)
+++ branches/release/boost/circular_buffer/details.hpp 2008-08-20 12:13:07 EDT (Wed, 20 Aug 2008)
@@ -131,7 +131,7 @@
 };
 
 /*!
- \struct capacity_control
+ \class capacity_control
     \brief Capacity controller of the space optimized circular buffer.
 */
 template <class Size>
@@ -166,7 +166,7 @@
 };
 
 /*!
- \class iterator
+ \struct iterator
     \brief Random access iterator for the circular buffer.
     \param Buff The type of the underlying circular buffer.
     \param Traits Basic iterator types.
@@ -174,7 +174,7 @@
           for iterating from begin() to end() of the circular buffer.
 */
 template <class Buff, class Traits>
-class iterator :
+struct iterator :
     public boost::iterator<
     std::random_access_iterator_tag,
     typename Traits::value_type,
@@ -185,7 +185,6 @@
     , public debug_iterator_base
 #endif // #if BOOST_CB_ENABLE_DEBUG
 {
-private:
 // Helper types
 
     //! Base iterator.
@@ -199,7 +198,6 @@
     //! Non-const iterator.
     typedef iterator<Buff, typename Traits::nonconst_self> nonconst_self;
 
-public:
 // Basic types
 
     //! The type of the elements stored in the circular buffer.
@@ -217,7 +215,6 @@
     //! Difference type.
     typedef typename base_iterator::difference_type difference_type;
 
-public:
 // Member variables
 
     //! The circular buffer where the iterator points to.
@@ -226,7 +223,6 @@
     //! An internal iterator.
     pointer m_it;
 
-public:
 // Construction & assignment
 
     // Default copy constructor.
@@ -392,7 +388,6 @@
     template <class Traits0>
     bool operator >= (const iterator<Buff, Traits0>& it) const { return !(*this < it); }
 
-private:
 // Helpers
 
     //! Get a pointer which would point to the same element as the iterator in case the circular buffer is linearized.


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