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