Boost logo

Boost-Commit :

From: chochlik_at_[hidden]
Date: 2008-04-23 02:51:04


Author: matus.chochlik
Date: 2008-04-23 02:51:03 EDT (Wed, 23 Apr 2008)
New Revision: 44732
URL: http://svn.boost.org/trac/boost/changeset/44732

Log:
Fixed few things in cube.cpp to make it compilable with MSVC++ 2008
Text files modified:
   sandbox/mirror/libs/examples/serialization/cube.cpp | 16 ++++++----------
   1 files changed, 6 insertions(+), 10 deletions(-)

Modified: sandbox/mirror/libs/examples/serialization/cube.cpp
==============================================================================
--- sandbox/mirror/libs/examples/serialization/cube.cpp (original)
+++ sandbox/mirror/libs/examples/serialization/cube.cpp 2008-04-23 02:51:03 EDT (Wed, 23 Apr 2008)
@@ -159,7 +159,7 @@
 namespace boost {
 namespace mirror {
 
-/** Register the 3D namespace
+/** Register the Graphics namespace
  */
 BOOST_MIRROR_REG_META_NAMESPACE_TOP_LEVEL(Graphics)
 
@@ -300,8 +300,7 @@
                         position
>::type value;
                 // load it
- BOOST_AUTO(dst, make_loadable(value));
- ar >> dst;
+ ar >> make_loadable(value);
                 // and set it
                 meta_class::all_attributes::set(c, position(), value);
         }
@@ -319,20 +318,17 @@
                         typename meta_class::all_attributes::type_list,
                         position
>::type value;
- BOOST_AUTO(dst, make_loadable(value));
- ar >> dst;
+ ar >> make_loadable(value);
                 meta_class::all_attributes::set(c, position(), value);
         }
 };
 
 
-
-
 template<class Archive, class Class>
 void load(Archive & ar, Class & c)
 {
         typedef BOOST_MIRROR_REFLECT_CLASS(Class) meta_Class;
- typedef mpl::int_<meta_Class::all_attributes::size::value-1> last;
+ typedef mpl::int_<meta_Class::all_attributes::size::value - 1> last;
         single_attrib_loader<meta_Class, last>(ar, c);
 }
 
@@ -374,10 +370,10 @@
 };
 
 template<class Archive, class Class>
-void save(Archive & ar, Class & c)
+void save(Archive & ar, const Class & c)
 {
         typedef BOOST_MIRROR_REFLECT_CLASS(Class) meta_Class;
- typedef mpl::int_<meta_Class::all_attributes::size::value-1> last;
+ typedef mpl::int_<meta_Class::all_attributes::size::value - 1> last;
         single_attrib_saver<meta_Class, last>(ar, c);
 }
 


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