/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// text_woarchive.hpp
-// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
+// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <cstddef> // size_t
#if defined(BOOST_NO_STDC_NAMESPACE)
-namespace std{
- using ::size_t;
+namespace std{
+ using ::size_t;
} // namespace std
#endif
# pragma warning(disable : 4511 4512)
#endif
-namespace boost {
+namespace boost {
namespace archive {
namespace detail {
#endif
text_woarchive_impl(std::wostream & os, unsigned int flags) :
basic_text_oprimitive<std::wostream>(
- os,
+ os,
0 != (flags & no_codecvt)
),
basic_text_oarchive<Archive>(flags)
- {
- if(0 == (flags & no_header))
- basic_text_oarchive<Archive>::init();
- }
+ {}
public:
void save_binary(const void *address, std::size_t count){
put(static_cast<wchar_t>('\n'));
#else
this->basic_text_oprimitive::save_binary(
#endif
- address,
+ address,
count
);
put(static_cast<wchar_t>('\n'));
// do not derive from this class. If you want to extend this functionality
// via inhertance, derived from text_oarchive_impl instead. This will
// preserve correct static polymorphism.
-class BOOST_SYMBOL_VISIBLE text_woarchive :
+class BOOST_SYMBOL_VISIBLE text_woarchive :
public text_woarchive_impl<text_woarchive>
{
public:
text_woarchive(std::wostream & os, unsigned int flags = 0) :
text_woarchive_impl<text_woarchive>(os, flags)
- {}
+ {
+ if(0 == (flags & no_header))
+ init();
+ }
~text_woarchive(){}
};