I believe this is a side effect of our efforts to be sure that the mere
inclusion of a class that includes serialization headers doesn't trigger
(through auto-linking) the requirement for inlcuding a library module.
The idea is that one would never need "void_cast_register<T>" to be
generated unless there is an archive somewhere involved.
So that raises the question of what the context is here. Your test
illustrates the link error but it doesn't illustrate the use case. That is,
what is the context of explicitly invoking void_cast_register without an
archive header present? I'm not saying its wrong. Its just that I don't
see how this comes up.
When we implemented changes which resulted in this symptom - we enivisioned
a pattern of usage like that shown below. In this way, the *.hpp files
could be included in other programs without triggering auto-link and
requiring linking with the boost library to include code that in fact will
never be used. Were we missing something here? What is it?
Robert Ramey
Z.hpp
====
#include