From: Alexandre Oliva <oliva@dcc.unicamp.br>
To: Benoit Lavigne <blavigne@newbridge.com>
Cc: egcs@cygnus.com
Subject: Re: Pointer-to-member Strange behaviour
Date: Sat, 06 Dec 1997 19:59:00 -0000 [thread overview]
Message-ID: <orpvn94xl0.fsf@grupiara.dcc.unicamp.br> (raw)
In-Reply-To: <3487903C.490F@newbridge.com>
Benoit Lavigne writes:
> The following code won't compile, and I can't figure out why...
> ptm fn; // pointer to member function
> int Execute() {
> return (d_mgr_p->*fn);
If you intend to call invoke the member function, you must add parens:
return (d_mgr_p->*fn());
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil
prev parent reply other threads:[~1997-12-06 19:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-12-05 1:33 Benoit Lavigne
1997-12-06 19:59 ` Alexandre Oliva [this message]
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=orpvn94xl0.fsf@grupiara.dcc.unicamp.br \
--to=oliva@dcc.unicamp.br \
--cc=blavigne@newbridge.com \
--cc=egcs@cygnus.com \
/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).