
Rene Rivera <grafik.list@redshift-software.com> writes:
David Abrahams wrote:
[..]
Got all that :-)
classes, _static data members_ and member templates; and it causes the implicit instantiation of the definitions of member anonymous unions." But you missed the most important part of that paragraph ;-)
I didn't really miss it... It would be CW who missed it ;-)
It's not getting called, no matter what. Or more precisely CW is not adding the constructor+instance to the global initialization function list that CW generates. I think it's a bug and should be reported to MW, but that said, check out boost/python/detail/force_instantiate.hpp, which I use for this exact purpose.
I just did, doesn't help :-(
You have to ensure that force_instantiate(foo<X>::bar) gets called, of course. -- Dave Abrahams Boost Consulting www.boost-consulting.com