|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r52701 - trunk/boost/serialization
From: ramey_at_[hidden]
Date: 2009-05-01 12:15:23
Author: ramey
Date: 2009-05-01 12:15:21 EDT (Fri, 01 May 2009)
New Revision: 52701
URL: http://svn.boost.org/trac/boost/changeset/52701
Log:
fixed const in bitset
Text files modified:
trunk/boost/serialization/bitset.hpp | 12 ++++++++----
trunk/boost/serialization/complex.hpp | 2 +-
2 files changed, 9 insertions(+), 5 deletions(-)
Modified: trunk/boost/serialization/bitset.hpp
==============================================================================
--- trunk/boost/serialization/bitset.hpp (original)
+++ trunk/boost/serialization/bitset.hpp 2009-05-01 12:15:21 EDT (Fri, 01 May 2009)
@@ -10,8 +10,12 @@
#ifndef BOOST_SERIALIZATION_BITSET_HPP
#define BOOST_SERIALIZATION_BITSET_HPP
+// MS compatible compilers support #pragma once
+#if defined(_MSC_VER) && (_MSC_VER >= 1020)
+# pragma once
+#endif
+
#include <bitset>
-#include <string>
#include <boost/config.hpp>
#include <boost/serialization/split_free.hpp>
@@ -25,9 +29,9 @@
inline void save(
Archive & ar,
std::bitset<size> const & t,
- const unsigned int version
+ const unsigned int /* version */
){
- std::string bits = t.template to_string<
+ const std::string bits = t.template to_string<
std::string::value_type,
std::string::traits_type,
std::string::allocator_type
@@ -39,7 +43,7 @@
inline void load(
Archive & ar,
std::bitset<size> & t,
- const unsigned int version
+ const unsigned int /* version */
){
std::string bits;
ar >> BOOST_SERIALIZATION_NVP( bits );
Modified: trunk/boost/serialization/complex.hpp
==============================================================================
--- trunk/boost/serialization/complex.hpp (original)
+++ trunk/boost/serialization/complex.hpp 2009-05-01 12:15:21 EDT (Fri, 01 May 2009)
@@ -39,7 +39,7 @@
template<class Archive, class T>
inline void save(
Archive & ar,
- std::complex<T> const& t,
+ std::complex<T> const & t,
const unsigned int /* file_version */
){
const T re = t.real();
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