This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

& non-static -> member function


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]