This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
& non-static -> member function
- To: gcc-bugs at gcc dot gnu dot org
- Subject: & non-static -> member function
- From: Hany Morcos <hanymorcos at yahoo dot com>
- Date: Mon, 31 Jan 2000 09:01:41 -0800 (PST)
Script started on Mon Jan 31 11:29:11 2000
> cat -n mp.cpp
1
2
3 class x
4 {
5 public:
6 x ():
7 t(&y) {}
8 void y();
9 void (x::*t) ();
10 };
11
12
13 void main()
14 { x(); }
15
16
> g++ mp.cpp
mp.cpp: In method `x::x()':
mp.cpp:7: taking the address of a non-static member
function
mp.cpp:7: to form a pointer to member function, say
`&x::y'
> exit
exit
script done on Mon Jan 31 11:29:20 2000
Is there any way to get rid rid of this error?
This was acceptable before....
Thanks Hany\
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com