|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r49348 - branches/release/boost/serialization trunk/boost/serialization
From: ramey_at_[hidden]
Date: 2008-10-15 15:04:50
Author: ramey
Date: 2008-10-15 15:04:49 EDT (Wed, 15 Oct 2008)
New Revision: 49348
URL: http://svn.boost.org/trac/boost/changeset/49348
Log:
changes to better accomodate borland
Text files modified:
trunk/boost/serialization/extended_type_info_typeid.hpp | 2 +-
trunk/boost/serialization/vector.hpp | 12 ++++++++++--
2 files changed, 11 insertions(+), 3 deletions(-)
Modified: trunk/boost/serialization/extended_type_info_typeid.hpp
==============================================================================
--- trunk/boost/serialization/extended_type_info_typeid.hpp (original)
+++ trunk/boost/serialization/extended_type_info_typeid.hpp 2008-10-15 15:04:49 EDT (Wed, 15 Oct 2008)
@@ -112,7 +112,7 @@
return NULL;
}
}
- void destroy(void const * const p) const {
+ void destroy(void const * const /* p */) const {
// the only current usage of extended type info is in the
// serialization library. The statement below requires
// that destructor of type T be public and this creates
Modified: trunk/boost/serialization/vector.hpp
==============================================================================
--- trunk/boost/serialization/vector.hpp (original)
+++ trunk/boost/serialization/vector.hpp 2008-10-15 15:04:49 EDT (Wed, 15 Oct 2008)
@@ -116,7 +116,11 @@
const std::vector<U, Allocator> &t,
const unsigned int file_version
){
- save(ar,t,file_version, BOOST_DEDUCED_TYPENAME use_array_optimization<Archive>::template apply<U>::type());
+ typedef BOOST_DEDUCED_TYPENAME
+ boost::serialization::use_array_optimization<Archive>::template apply<
+ BOOST_DEDUCED_TYPENAME remove_const<U>::type
+ >::type use_optimized;
+ save(ar,t,file_version, use_optimized());
}
template<class Archive, class U, class Allocator>
@@ -125,7 +129,11 @@
std::vector<U, Allocator> &t,
const unsigned int file_version
){
- load(ar,t,file_version, BOOST_DEDUCED_TYPENAME use_array_optimization<Archive>::template apply<U>::type());
+ typedef BOOST_DEDUCED_TYPENAME
+ boost::serialization::use_array_optimization<Archive>::template apply<
+ BOOST_DEDUCED_TYPENAME remove_const<U>::type
+ >::type use_optimized;
+ load(ar,t,file_version, use_optimized());
}
// split non-intrusive serialization function member into separate
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