From: stepleton@gmail.com
To: gcc-help@gcc.gnu.org
Subject: Re: Force generation of an uncalled method?
Date: Fri, 22 Feb 2008 21:23:00 -0000 [thread overview]
Message-ID: <alpine.OSX.1.00.0802221550220.2164@CMU-211767.WV.CC.CMU.EDU> (raw)
In-Reply-To: <47BF336F.C22A2B9E@dessent.net>
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
next prev parent reply other threads:[~2008-02-22 20:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-22 20:00 stepleton
2008-02-22 20:57 ` Brian Dessent
2008-02-22 21:23 ` stepleton [this message]
2008-02-23 1:05 ` Brian Dessent
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.OSX.1.00.0802221550220.2164@CMU-211767.WV.CC.CMU.EDU \
--to=stepleton@gmail.com \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).