Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66419 - branches/release/libs/serialization/example
From: ramey_at_[hidden]
Date: 2010-11-06 16:00:13


Author: ramey
Date: 2010-11-06 16:00:11 EDT (Sat, 06 Nov 2010)
New Revision: 66419
URL: http://svn.boost.org/trac/boost/changeset/66419

Log:
merge to release branch
Properties modified:
   branches/release/libs/serialization/example/ (props changed)
Text files modified:
   branches/release/libs/serialization/example/demo_auto_ptr.cpp | 10 +++++-----
   branches/release/libs/serialization/example/log_archive.hpp | 2 +-
   branches/release/libs/serialization/example/portable_binary_iarchive.hpp | 2 +-
   branches/release/libs/serialization/example/simple_log_archive.hpp | 8 ++++----
   4 files changed, 11 insertions(+), 11 deletions(-)

Modified: branches/release/libs/serialization/example/demo_auto_ptr.cpp
==============================================================================
--- branches/release/libs/serialization/example/demo_auto_ptr.cpp (original)
+++ branches/release/libs/serialization/example/demo_auto_ptr.cpp 2010-11-06 16:00:11 EDT (Sat, 06 Nov 2010)
@@ -29,13 +29,13 @@
 namespace serialization {
 
 /////////////////////////////////////////////////////////////
-// implement serialization for auto_ptr<T>
+// implement serialization for auto_ptr< T >
 // note: this must be added to the boost namespace in order to
 // be called by the library
 template<class Archive, class T>
 inline void save(
     Archive & ar,
- const std::auto_ptr<T> &t,
+ const std::auto_ptr< T > &t,
     const unsigned int file_version
 ){
     // only the raw pointer has to be saved
@@ -47,7 +47,7 @@
 template<class Archive, class T>
 inline void load(
     Archive & ar,
- std::auto_ptr<T> &t,
+ std::auto_ptr< T > &t,
     const unsigned int file_version
 ){
     T *pTarget;
@@ -55,7 +55,7 @@
     // note that the reset automagically maintains the reference count
     #if BOOST_WORKAROUND(BOOST_DINKUMWARE_STDLIB, == 1)
         t.release();
- t = std::auto_ptr<T>(pTarget);
+ t = std::auto_ptr< T >(pTarget);
     #else
         t.reset(pTarget);
     #endif
@@ -66,7 +66,7 @@
 template<class Archive, class T>
 inline void serialize(
     Archive & ar,
- std::auto_ptr<T> &t,
+ std::auto_ptr< T > &t,
     const unsigned int file_version
 ){
     boost::serialization::split_free(ar, t, file_version);

Modified: branches/release/libs/serialization/example/log_archive.hpp
==============================================================================
--- branches/release/libs/serialization/example/log_archive.hpp (original)
+++ branches/release/libs/serialization/example/log_archive.hpp 2010-11-06 16:00:11 EDT (Sat, 06 Nov 2010)
@@ -48,7 +48,7 @@
         base::save_override(boost::serialization::make_nvp(NULL, t), 0);
     }
     template<class T>
- void save_override(const boost::serialization::nvp<T> & t, int){
+ void save_override(const boost::serialization::nvp< T > & t, int){
         // this is here to remove the "const" requirement. Since
         // this class is to be used only for output, it's not required.
         base::save_override(t, 0);

Modified: branches/release/libs/serialization/example/portable_binary_iarchive.hpp
==============================================================================
--- branches/release/libs/serialization/example/portable_binary_iarchive.hpp (original)
+++ branches/release/libs/serialization/example/portable_binary_iarchive.hpp 2010-11-06 16:00:11 EDT (Sat, 06 Nov 2010)
@@ -105,7 +105,7 @@
         boost::intmax_t l;
         load_impl(l, sizeof(T));
         // use cast to avoid compile time warning
- //t = static_cast<T>(l);
+ //t = static_cast< T >(l);
         t = T(l);
     }
     void load(boost::serialization::item_version_type & t){

Modified: branches/release/libs/serialization/example/simple_log_archive.hpp
==============================================================================
--- branches/release/libs/serialization/example/simple_log_archive.hpp (original)
+++ branches/release/libs/serialization/example/simple_log_archive.hpp 2010-11-06 16:00:11 EDT (Sat, 06 Nov 2010)
@@ -67,20 +67,20 @@
             boost::serialization::serialize_adl(
                 ar,
                 const_cast<T &>(t),
- ::boost::serialization::version<T>::value
+ ::boost::serialization::version< T >::value
             );
         }
     };
     template<class T>
     void save(const T &t){
         typedef
- BOOST_DEDUCED_TYPENAME boost::mpl::eval_if<boost::is_enum<T>,
+ BOOST_DEDUCED_TYPENAME boost::mpl::eval_if<boost::is_enum< T >,
                 boost::mpl::identity<save_enum_type<simple_log_archive> >,
             //else
             BOOST_DEDUCED_TYPENAME boost::mpl::eval_if<
                 // if its primitive
                     boost::mpl::equal_to<
- boost::serialization::implementation_level<T>,
+ boost::serialization::implementation_level< T >,
                         boost::mpl::int_<boost::serialization::primitive_type>
>,
                     boost::mpl::identity<save_primitive<simple_log_archive> >,
@@ -139,7 +139,7 @@
         );
     }
     template<class T>
- simple_log_archive & operator<<(const boost::serialization::nvp<T> & t){
+ simple_log_archive & operator<<(const boost::serialization::nvp< T > & t){
         m_os << '\n'; // start line with each named object
         // indent according to object depth
         for(unsigned int i = 0; i < m_depth; ++i)


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