| 1 | /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 | 
|---|
| 2 | // xml_wiarchive.cpp: | 
|---|
| 3 |  | 
|---|
| 4 | // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . | 
|---|
| 5 | // Use, modification and distribution is subject to the Boost Software | 
|---|
| 6 | // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at | 
|---|
| 7 | // http://www.boost.org/LICENSE_1_0.txt) | 
|---|
| 8 |  | 
|---|
| 9 | //  See http://www.boost.org for updates, documentation, and revision history. | 
|---|
| 10 |  | 
|---|
| 11 | #include <boost/config.hpp> | 
|---|
| 12 | #ifdef BOOST_NO_STD_WSTREAMBUF | 
|---|
| 13 | #error "wide char i/o not supported on this platform" | 
|---|
| 14 | #else | 
|---|
| 15 |  | 
|---|
| 16 | #include <boost/detail/workaround.hpp> | 
|---|
| 17 |  | 
|---|
| 18 | #if (defined _MSC_VER) && (_MSC_VER == 1200) | 
|---|
| 19 | #  pragma warning (disable : 4786) // too long name, harmless warning | 
|---|
| 20 | #endif | 
|---|
| 21 |  | 
|---|
| 22 | #define BOOST_WARCHIVE_SOURCE | 
|---|
| 23 |  | 
|---|
| 24 | // the following works around an issue between spirit 1.61 and borland. | 
|---|
| 25 | // it turns out the the certain spirit stuff must be defined before | 
|---|
| 26 | // certain parts of mpl.  including this here makes sure that happens | 
|---|
| 27 | #if BOOST_WORKAROUND(__BORLANDC__, <= 0x560 ) | 
|---|
| 28 | #include <boost/archive/impl/basic_xml_grammar.hpp> | 
|---|
| 29 | #endif | 
|---|
| 30 |  | 
|---|
| 31 | #include <boost/archive/xml_wiarchive.hpp> | 
|---|
| 32 |  | 
|---|
| 33 | // explicitly instantiate for this type of xml stream | 
|---|
| 34 | #include <boost/archive/impl/basic_xml_iarchive.ipp> | 
|---|
| 35 | #include <boost/archive/impl/xml_wiarchive_impl.ipp> | 
|---|
| 36 | #include <boost/archive/impl/archive_pointer_iserializer.ipp> | 
|---|
| 37 |  | 
|---|
| 38 | namespace boost { | 
|---|
| 39 | namespace archive { | 
|---|
| 40 |  | 
|---|
| 41 | template class basic_xml_iarchive<xml_wiarchive> ; | 
|---|
| 42 | template class xml_wiarchive_impl<xml_wiarchive> ; | 
|---|
| 43 | template class detail::archive_pointer_iserializer<xml_wiarchive> ; | 
|---|
| 44 |  | 
|---|
| 45 | } // namespace archive | 
|---|
| 46 | } // namespace boost | 
|---|
| 47 |  | 
|---|
| 48 | #endif // BOOST_NO_STD_WSTREAMBUF | 
|---|