mirror of
https://github.com/boostorg/serialization.git
synced 2026-01-27 07:22:08 +00:00
correction for wchar_t when its a short
[SVN r24536]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user