Re: Force generation of an uncalled method?

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

 



On Fri, 22 Feb 2008, Brian Dessent wrote:

I think you will need to explicitly instantiate a copy of the debug
method for each type that you expect to want to use from gdb, because
normally g++ only instantiates implicitly.  You might find this page
helpful:
<http://gcc.gnu.org/onlinedocs/gcc/Template-Instantiation.html>.

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.

--Tom

[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