[Boost-bugs] [Boost C++ Libraries] #12336: Add Hint to BOOST_ALL_DYN_LINK=1 to serialization library

Subject: [Boost-bugs] [Boost C++ Libraries] #12336: Add Hint to BOOST_ALL_DYN_LINK=1 to serialization library
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-07-20 12:38:26


#12336: Add Hint to BOOST_ALL_DYN_LINK=1 to serialization library
------------------------------+---------------------------
 Reporter: georg@… | Owner: ramey
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
  Version: Boost 1.61.0 | Severity: Problem
 Keywords: Documentation |
------------------------------+---------------------------
 When you serialize a class over a pointer and the class is defined in a
 DLL, you need to register the key via BOOST_EXPORT_CLASS(xyz).

 But when you link static, you get two distinct serialization registries
 (extended_type_info) and the main executable cant serialize/deserialize
 the class in the DLL.

 When you compile with BOOST_ALL_DYN_LINK=1 and dynamicaly link to the
 boost libs, this ensures that there is just one registry
 (extended_type_info).

 So i would add this hint in the "Tips & Tricks" section or in the page of
 the derived classes.

 BOOST_ALL_DYN_LINK=1 is important for the serialization. This ensures
 that there is just one extended_type_info registry. Otherwise the
 main executable cant de/serialize the objects in the DLL/so file.

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