gcc 2.9.5 question
Nathan Sidwell
nathan@acm.org
Tue Aug 31 22:45:00 GMT 1999
Bryan Weston wrote:
> cc1plus: warnings being treated as errors
> test.cc: In method `A::A()':
> test.cc:41: warning: taking the address of a non-static member function
> test.cc:41: warning: to form a pointer to member function, say `&A::func'
>
> Why do I have to qualify the function with the class name when I am in the
> class?
Because the language says so. 5.3.1/3
nathan
--
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
I have seen the death of PhotoShop -- it is called GIMP
nathan@acm.org http://www.cs.bris.ac.uk/~nathan/ nathan@cs.bris.ac.uk
More information about the Gcc-bugs
mailing list