public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* bound pointer to member
@ 2011-02-23 10:28 Klaus Rudolph
  2011-02-23 10:29 ` Jonathan Wakely
  0 siblings, 1 reply; 5+ messages in thread
From: Klaus Rudolph @ 2011-02-23 10:28 UTC (permalink / raw)
  To: gcc-help

Hi,

I search for a simple code snipped which shows how bound pointers work.
I always end up in the message : 

main.cpp:51: error: ISO C++ forbids taking the address of a bound member function to form a pointer to member function.  Say ‘&A::Func2’

Can anyone post a code snippet which compiles on g++? Is there a need to give any special options to enable this language extension?

Thanks
 Klaus


-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-02-23 12:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-23 10:28 bound pointer to member Klaus Rudolph
2011-02-23 10:29 ` Jonathan Wakely
2011-02-23 12:09   ` Klaus Rudolph
2011-02-23 12:22     ` Jonathan Wakely
2011-02-23 12:40     ` David Hagood

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).