Re: Force generation of an uncalled method?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



stepleton@xxxxxxxxx wrote:

> Thanks, Brian, this is it! For now I am getting by placing something like
> "if(false) debugMethod();" into the constructor. If there is a convention
> for this sort of thing, I'd be happy to know about it.

You should be able to explicitly instantiate it as e.g. "template class
Foo<int>;" which if I understand correctly would tell g++ to compile and
emit bodies for all non-inline methods of Foo<int> at that point.

Brian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux