correction for wchar_t when its a short

[SVN r24536]
This commit is contained in:
Robert Ramey
2004-08-17 16:29:05 +00:00
parent 3eaf727e8f
commit 8b1833a2bc

View File

@@ -67,6 +67,7 @@ void text_oarchive_impl<Archive>::save(const wchar_t * ws)
this->This()->newtoken();
os.write((const char *)ws, l * sizeof(wchar_t)/sizeof(char));
}
#endif
#ifndef BOOST_NO_STD_WSTRING
template<class Archive>
@@ -78,7 +79,6 @@ void text_oarchive_impl<Archive>::save(const std::wstring &ws)
os.write((const char *)(ws.data()), l * sizeof(wchar_t)/sizeof(char));
}
#endif
#endif
#endif // BOOST_NO_CWCHAR
} // namespace archive