|
Boost-Commit : |
From: ramey_at_[hidden]
Date: 2007-12-05 21:33:59
Author: ramey
Date: 2007-12-05 21:33:59 EST (Wed, 05 Dec 2007)
New Revision: 41770
URL: http://svn.boost.org/trac/boost/changeset/41770
Log:
change to fix failures with gcc 4.1+
modification to string input primitives
Text files modified:
trunk/boost/archive/impl/basic_binary_iprimitive.ipp | 2 +-
trunk/boost/archive/impl/text_iarchive_impl.ipp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/boost/archive/impl/basic_binary_iprimitive.ipp
==============================================================================
--- trunk/boost/archive/impl/basic_binary_iprimitive.ipp (original)
+++ trunk/boost/archive/impl/basic_binary_iprimitive.ipp 2007-12-05 21:33:59 EST (Wed, 05 Dec 2007)
@@ -95,7 +95,7 @@
#endif
s.resize(l);
// note breaking a rule here - could be a problem on some platform
- load_binary(const_cast<char *>(s.data()), l);
+ load_binary(&(*s.begin()), l);
}
#ifndef BOOST_NO_CWCHAR
Modified: trunk/boost/archive/impl/text_iarchive_impl.ipp
==============================================================================
--- trunk/boost/archive/impl/text_iarchive_impl.ipp (original)
+++ trunk/boost/archive/impl/text_iarchive_impl.ipp 2007-12-05 21:33:59 EST (Wed, 05 Dec 2007)
@@ -53,7 +53,7 @@
if(NULL != s.data())
#endif
s.resize(size);
- is.read(const_cast<char *>(s.data()), size);
+ is.read(&(*s.begin()), size);
}
#ifndef BOOST_NO_CWCHAR
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