[Boost-bugs] [Boost C++ Libraries] #11593: undocumented export problem

Subject: [Boost-bugs] [Boost C++ Libraries] #11593: undocumented export problem
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-08-27 14:36:03


#11593: undocumented export problem
------------------------------+---------------------------
 Reporter: mstarzycki@… | Owner: ramey
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: serialization
  Version: Boost 1.58.0 | Severity: Cosmetic
 Keywords: serialization |
------------------------------+---------------------------
 when I started using the serialisation I had a problem with duplicated
 symbols being produced by
 BOOST_CLASS_EXPORT_GUID called twice from different compilation units.
 I have not used the macro as said in tutorial in the definition of class
 but thought the .h file will be a better place for it.

 I think it would be great if either one of those would happen:
 - the problem with duplicated guid if the BOOST_CLASS_EXPORT_GUID is
 called twice from different CU
 - the prevention mechanism would be incorporated in macro (for instance if
 the guid is registered with a same class, second macro is expanded into
 nothing)

 If the 2nd option is impossible if the documentation would explicitly say
 that such code:
 duplicate symbol __ZN5boost7archive6detail12extra_detail9init_guid is the
 result of registering class twice
 it could save some time with investigation.

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