Boost logo

Boost-Commit :

From: nesotto_at_[hidden]
Date: 2008-06-12 08:01:47


Author: nesotto
Date: 2008-06-12 08:01:46 EDT (Thu, 12 Jun 2008)
New Revision: 46349
URL: http://svn.boost.org/trac/boost/changeset/46349

Log:
fix of minor problems reported in trac
Text files modified:
   trunk/libs/ptr_container/test/serialization.cpp | 10 +++++-----
   trunk/libs/ptr_container/test/test_data.hpp | 10 +++++-----
   2 files changed, 10 insertions(+), 10 deletions(-)

Modified: trunk/libs/ptr_container/test/serialization.cpp
==============================================================================
--- trunk/libs/ptr_container/test/serialization.cpp (original)
+++ trunk/libs/ptr_container/test/serialization.cpp 2008-06-12 08:01:46 EDT (Thu, 12 Jun 2008)
@@ -49,9 +49,9 @@
 };
 
 template<class T>
-struct set_capacity< ptr_circular_buffer<T> >
+struct set_capacity< boost::ptr_circular_buffer<T> >
 {
- void operator()( ptr_circular_buffer<T>& c ) const
+ void operator()( boost::ptr_circular_buffer<T>& c ) const
     {
         c.set_capacity( 100u );
     }
@@ -68,7 +68,7 @@
 
     
     template< class Archive >
- void serialize( Archive& ar, const unsigned int version )
+ void serialize( Archive& ar, const unsigned int /*version*/ )
     {
         ar & boost::serialization::make_nvp( "i", i );
     }
@@ -103,7 +103,7 @@
     int i2;
 
     template< class Archive >
- void serialize( Archive& ar, const unsigned int version )
+ void serialize( Archive& ar, const unsigned int /*version*/ )
     {
         ar & boost::serialization::make_nvp( "Base",
                  boost::serialization::base_object<Base>( *this ) );
@@ -125,7 +125,7 @@
 //
 
 template< class C, class T >
-void add( C& c, T* r, unsigned n )
+void add( C& c, T* r, unsigned /*n*/ )
 {
     c.insert( c.end(), r );
 }

Modified: trunk/libs/ptr_container/test/test_data.hpp
==============================================================================
--- trunk/libs/ptr_container/test/test_data.hpp (original)
+++ trunk/libs/ptr_container/test/test_data.hpp 2008-06-12 08:01:46 EDT (Thu, 12 Jun 2008)
@@ -70,7 +70,7 @@
     Base* clone() const { return do_clone(); }
     void foo() { do_foo(); }
     
- virtual bool less_than( const Base& b ) const
+ virtual bool less_than( const Base& /*b*/ ) const
     {
         return true;
     }
@@ -95,9 +95,9 @@
 #endif
     
 private:
- virtual void do_print( ostream& out ) const { };
- virtual Base* do_clone() const { return new Base( *this ); };
- virtual void do_foo() { };
+ virtual void do_print( ostream& /*out*/ ) const { };
+ virtual Base* do_clone() const { return new Base( *this ); };
+ virtual void do_foo() { };
 };
 
 #ifdef PTR_CONTAINER_DEBUG
@@ -274,7 +274,7 @@
 // used to hide "unused variable" warnings
 //
 template< class T >
-inline void hide_warning( T& r )
+inline void hide_warning( T& /*r*/ )
 { }
 
 //


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