Re: [Boost-bugs] [Boost C++ Libraries] #961: boost::basic_binary_oprimitive not instantiated correctly

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #961: boost::basic_binary_oprimitive not instantiated correctly
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-11-30 08:33:07


#961: boost::basic_binary_oprimitive not instantiated correctly
---------------------------------+------------------------------------------
  Reporter: theta682_at_[hidden] | Owner: ramey
      Type: Bugs | Status: assigned
 Milestone: Boost 1.35.0 | Component: serialization
   Version: release 1.34.0 | Severity: Problem
Resolution: | Keywords:
---------------------------------+------------------------------------------
Comment (by theta682_at_[hidden]):

 There are template functions for wchar_t, but they are not instantiated
 implicitly.
 I have to apply this patch:

 Index:
 C:/Projects/contrib/boost-1.34.1/libs/serialization/src/binary_iarchive.cpp
 ===================================================================
 ---
 C:/Projects/contrib/boost-1.34.1/libs/serialization/src/binary_iarchive.cpp
 (revision 33976)
 +++
 C:/Projects/contrib/boost-1.34.1/libs/serialization/src/binary_iarchive.cpp
 (revision 33977)
 @@ -26,6 +26,11 @@
      char,
      std::char_traits<char>
>;
 +#ifndef BOOST_NO_STD_WSTRING
 +template<class Archive, class Elem, class Tr>
 +BOOST_ARCHIVE_OR_WARCHIVE_DECL(void)
 +basic_binary_iprimitive<Archive, Elem, Tr>::load(std::wstring & ws);
 +#endif
  template class basic_binary_iarchive<binary_iarchive> ;
  template class binary_iarchive_impl<
      binary_iarchive,
 Index:
 C:/Projects/contrib/boost-1.34.1/libs/serialization/src/binary_oarchive.cpp
 ===================================================================
 ---
 C:/Projects/contrib/boost-1.34.1/libs/serialization/src/binary_oarchive.cpp
 (revision 33976)
 +++
 C:/Projects/contrib/boost-1.34.1/libs/serialization/src/binary_oarchive.cpp
 (revision 33977)
 @@ -26,6 +26,16 @@
      char,
      std::char_traits<char>
>;
 +#ifndef BOOST_NO_CWCHAR
 +template<class Archive, class Elem, class Tr>
 +BOOST_ARCHIVE_OR_WARCHIVE_DECL(void)
 +basic_binary_oprimitive<Archive, Elem, Tr>::save(const wchar_t * ws);
 +#ifndef BOOST_NO_STD_WSTRING
 +template<class Archive, class Elem, class Tr>
 +BOOST_ARCHIVE_OR_WARCHIVE_DECL(void)
 +basic_binary_oprimitive<Archive, Elem, Tr>::save(const std::wstring &ws);
 +#endif
 +#endif
  template class basic_binary_oarchive<binary_oarchive> ;
  template class binary_oarchive_impl<
      binary_oarchive,

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/961#comment:5>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC