[serialization] BOOST_SHARED_POINTER_EXPORT and namespaces

The following is invalid: namespace x { class y { ... }; } BOOST_SHARED_POINTER_EXPORT( x::y ) Which requires something like: typedef x::y x_y; BOOST_SHARED_POINTER_EXPORT( x::y ) The following additional macro mimics some of the other export macros: #define BOOST_SHARED_POINTER_EXPORT_GUID(T,N) \ typedef boost::detail::sp_counted_base_impl< \ T *, \ boost::checked_deleter< T > \ > __shared_ptr_ ## N; \ BOOST_CLASS_EXPORT(__shared_ptr_ ## N) \ BOOST_CLASS_EXPORT(T) \ /**/ So this is valid: BOOST_SHARED_POINTER_EXPORT_GUID( x::y, x_y ); Thoughts on adding this. Thanks, Jeff
participants (1)
-
Jeff Flinn