[serialization] serialization/nvp.hpp makes autolink kick in

Hello, Recent changes commited to Boost.Serialization make the following include #include <boost/serialization/nvp.hpp> to unwantedly trigger autolinking of the library. I've traced this down to the following piece of code inside type_info_implementation.hpp (included by nvp.hpp): #ifndef BOOST_SERIALIZATION_DEFAULT_TYPE_INFO #include <boost/serialization/extended_type_info_typeid.hpp> #endif This piece of code is new, former versions never included extended_type_info_typeid.hpp, which is the responsible for autolink activation. Reverting to the prior CVS version of type_info_implementation.hpp avoids the spurious autolink activation, but otherwise makes the lib build fail. I'd greatly appreciate if this issue could be taken care of. Thank you, Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

Sorry, I'll address it RObert Ramey Joaquín Mª López Muñoz wrote:
Hello,
Recent changes commited to Boost.Serialization make the following include
#include <boost/serialization/nvp.hpp>
to unwantedly trigger autolinking of the library. I've traced this down to the following piece of code inside type_info_implementation.hpp (included by nvp.hpp):
#ifndef BOOST_SERIALIZATION_DEFAULT_TYPE_INFO #include <boost/serialization/extended_type_info_typeid.hpp> #endif
This piece of code is new, former versions never included extended_type_info_typeid.hpp, which is the responsible for autolink activation.
Reverting to the prior CVS version of type_info_implementation.hpp avoids the spurious autolink activation, but otherwise makes the lib build fail. I'd greatly appreciate if this issue could be taken care of.
Thank you,
Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Robert Ramey ha escrito:
Sorry, I'll address it
RObert Ramey
Thank you! Best regards, Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
Joaquín Mª López Muñoz wrote:
Hello,
Recent changes commited to Boost.Serialization make the following include
#include <boost/serialization/nvp.hpp>
to unwantedly trigger autolinking of the library.
[...]

Joaquin: How do you detect this? would like to add a small test to verify that header inclusion doesn't miss anything - thats easy - just compile. But its not clear to me how to verify that its not including too much - ie autolinking. If I make a run test and I accidently invoke autolinking, my bjam setup finds the library and automatically links them in and the test passes. That's the beauty (and curse) of autolink. Turning off autolink will just hide the problem. I'm sure there is realy dumb simple way to do this - it just doesn't occur to me. Robert Ramey Joaquín Mª López Muñoz wrote:
Robert Ramey ha escrito:
Sorry, I'll address it
RObert Ramey
Thank you! Best regards,
Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
Joaquín Mª López Muñoz wrote:
Hello,
Recent changes commited to Boost.Serialization make the following include
#include <boost/serialization/nvp.hpp>
to unwantedly trigger autolinking of the library.
[...]
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (2)
-
Joaquín Mª López Muñoz
-
Robert Ramey