Boost logo

Boost-Commit :

From: dgregor_at_[hidden]
Date: 2008-05-27 13:51:11


Author: dgregor
Date: 2008-05-27 13:51:11 EDT (Tue, 27 May 2008)
New Revision: 45827
URL: http://svn.boost.org/trac/boost/changeset/45827

Log:
Merge MPI-Python fix for Intel C++ from release branch. Yes, I did this backwards.
Text files modified:
   trunk/boost/mpi/python/serialize.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/mpi/python/serialize.hpp
==============================================================================
--- trunk/boost/mpi/python/serialize.hpp (original)
+++ trunk/boost/mpi/python/serialize.hpp 2008-05-27 13:51:11 EDT (Tue, 27 May 2008)
@@ -317,8 +317,8 @@
     template<typename T>
     struct default_saver {
       void operator()(OArchiver& ar, const object& obj, const unsigned int) {
- typedef typename mpl::if_<is_fundamental<T>, T, T&>::type Type;
- ar << extract<Type>(obj)();
+ T value = extract<T>(obj)();
+ ar << value;
       }
     };
 


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