Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2005-05-23 11:00:00

Rene Rivera <grafik.list_at_[hidden]> 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

Dave Abrahams
Boost Consulting

Boost list run by bdawes at, gregod at, cpdaniel at, john at