Dear Robert Ramey,
I'm SO sorry to bother you again!
When I compile Boost::Serialization(version 1.32.0) using msvc71+stlport4.6.2,
I fond compile error in the file "xml_escape.hpp" line 47.
I followed the way compile shown , and find the cause is in file
"xml_woarchive_impl.ipp" line 108 .
I think it is more reasonable to alter the function like this :
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
#ifndef BOOST_NO_STD_WSTRING
template<class Archive>
void xml_woarchive_impl<Archive>::save(const std::wstring & ws){
typedef iterators::xml_escapestd::wstring::const_iterator xmbtows;
// This is changed by zhengyi !! otherwise ,using stlport can not
// compile successfully
std::copy(
xmbtows(BOOST_MAKE_PFTO_WRAPPER(ws.begin()/*ws.data()*/)),
xmbtows(BOOST_MAKE_PFTO_WRAPPER(ws.end()/*ws.data() + ws.size()*/)),
boost::archive::iterators::ostream_iterator