From: Brendan Simon <brendan@dgs.monash.edu.au>
To: Ward Correll <wardless@hotmail.com>
Cc: cygwin@sourceware.cygnus.com
Subject: Re: Maybe a Bug in Cygwin in using Pointers to class fuctions
Date: Tue, 31 Aug 1999 23:49:00 -0000 [thread overview]
Message-ID: <37A62BE7.95925CAE@dgs.monash.edu.au> (raw)
Message-ID: <19990831234900.BqLSSnzfu0BJt4eS2X4DKrMVbIsiwrAcgvLKXR0SzPk@z> (raw)
In-Reply-To: <19990802205215.22723.qmail@hotmail.com>
Ward Correll wrote:
> =========================OUTPUT FROM CYGWIN==========================
> BASH.EXE-2.02$ c++ -o try try.cpp
> test.cpp: In function `int main()':
> test.cpp:66: assuming & on `Mammal::Speak'
> test.cpp:67: assuming & on `Mammal::Move'
> =====================================================================
> I know I want the fuction pointer to assume on Mammal::Speak or Mammal::Move
> when meets some conditions as you see. But cygwin won't let me do that.
Give this a try. It seems GCC is picky about the address of a function and/or
member function. It wants you to explicitly use the address operator as shown
below. I think this should work.
case 1: pFunc = &Mammal::Speak; break;
default: pFunc = &Mammal::Move; break;
Brendan Simon.
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
next prev parent reply other threads:[~1999-08-31 23:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-02 13:54 Ward Correll
1999-08-02 14:18 ` Mumit Khan
1999-08-31 23:49 ` Mumit Khan
1999-08-02 16:40 ` Brendan Simon [this message]
1999-08-31 23:49 ` Brendan Simon
1999-08-31 23:49 ` Ward Correll
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=37A62BE7.95925CAE@dgs.monash.edu.au \
--to=brendan@dgs.monash.edu.au \
--cc=cygwin@sourceware.cygnus.com \
--cc=wardless@hotmail.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).