Re: [Boost-bugs] [Boost C++ Libraries] #3014: Assertion on unregistering of extended_type_info

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3014: Assertion on unregistering of extended_type_info
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-08-23 05:23:49


#3014: Assertion on unregistering of extended_type_info
-----------------------------------+---------------------------
  Reporter: mazay0@… | Owner: ramey
      Type: Bugs | Status: closed
 Milestone: Boost 1.39.0 | Component: serialization
   Version: Boost Release Branch | Severity: Problem
Resolution: fixed | Keywords:
-----------------------------------+---------------------------

Comment (by mazay0@…):

 Just in case:
 The problem is fixed since 1.41.0:
 http://www.boost.org/doc/libs/1_41_0/libs/serialization/doc/traits.html#export

 ----

 This is addressed by invoking '' '''BOOST_CLASS_EXPORT_IMPLEMENT'''(T) in
 the file which defines (implements) the class T''. This ensures that code
 for the derived class T will be explicity instantiated.


 ...


 So in the serialization library, this is addressed by invoking ''
 '''BOOST_CLASS_EXPORT_KEY2(my_class, "my_class_external_identifier")''' in
 the header file which declares he class''.

 ...

 For programs which consist of only one module - that is programs which do
 not use DLLS, one can specify BOOST_CLASS_EXPORT(my_class) or
 BOOST_CLASS_EXPORT_GUID(my_class, "my_class_external_identifier") in
 either he declaration header or definition.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3014#comment:11>
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:13 UTC