whoops - last change was made without enough consideration.

Problem had already been addressed

[SVN r46294]
This commit is contained in:
Robert Ramey
2008-06-10 14:53:42 +00:00
parent 942fdf07dc
commit b17d9dbd7a
2 changed files with 1 additions and 10 deletions

View File

@@ -52,12 +52,9 @@ text_iarchive_impl<Archive>::load(std::string &s)
#if BOOST_WORKAROUND(_RWSTD_VER, BOOST_TESTED_AT(20101))
if(NULL != s.data())
#endif
#if __GNUC__ > 3
s.clear();
#endif
s.resize(size);
if(0 < size)
is.read(&(*s.begin()), size);
is.read(&(*s.begin()), size);
}
#ifndef BOOST_NO_CWCHAR
@@ -86,9 +83,6 @@ text_iarchive_impl<Archive>::load(std::wstring &ws)
#if BOOST_WORKAROUND(_RWSTD_VER, BOOST_TESTED_AT(20101))
if(NULL != ws.data())
#endif
#if __GNUC__ > 3
s.clear();
#endif
ws.resize(size);
// skip separating space
is.get();

View File

@@ -90,9 +90,6 @@ text_wiarchive_impl<Archive>::load(std::wstring &ws)
#if BOOST_WORKAROUND(_RWSTD_VER, BOOST_TESTED_AT(20101))
if(NULL != ws.data())
#endif
#if __GNUC__ > 3
ws.clear();
#endif
ws.resize(size);
// note breaking a rule here - is this a problem on some platform
is.read(const_cast<wchar_t *>(ws.data()), size);