[Boost-bugs] [Boost C++ Libraries] #4652: is_wrapper<std::string> assertion failed in xml_archive case

Subject: [Boost-bugs] [Boost C++ Libraries] #4652: is_wrapper<std::string> assertion failed in xml_archive case
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-09-16 04:31:07


#4652: is_wrapper<std::string> assertion failed in xml_archive case
---------------------------------+------------------------------------------
 Reporter: kondo@… | Owner: ramey
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: |
---------------------------------+------------------------------------------
 When I serialize a class that includes std::string non intrusively, below
 error occurred.

 'boost::mpl::assertion_failed' : Cannot convert 1st argument
 'boost::mpl::failed ************boost::serialization::is_wrapper<T>::*
 ***********'
 to 'boost::mpl::assert<false>::type'.

 T=const std::string

 The error occurs only when I use the xml_archive. The text_archive has no
 problem.

 I tried to fix my code. And I add below code.
 {{{
 BOOST_CLASS_IS_WRAPPER(std::string)
 }}}
 The error doesn't occur.

 But I don't understand why should I use this macro. I guess it should care
 in the serialization library.


 I attached the simple example to reproduce this problem.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4652>
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:50:04 UTC