Mail Archives: djgpp/2000/02/24/18:50:53
I don't receive the 'address of a non-static member function' errors, but I do
get the last two lines ('no matching function for call ..'). Either that or the
'please submit a bug report'. It seems to flip-flop between the two.
Thanks for your help.
N J Chackowsky wrote:
> I get the following errors, but no crash.
>
> wrong.cpp: In method `void t::selectfunc(int)':
> wrong.cpp:27: taking the address of a non-static member function
> wrong.cpp:27: to form a pointer to member function, say `&t::func1'
> wrong.cpp:28: taking the address of a non-static member function
> wrong.cpp:28: to form a pointer to member function, say `&t::func2'
> wrong.cpp:29: taking the address of a non-static member function
> wrong.cpp:29: to form a pointer to member function, say `&t::func3'
> wrong.cpp: In method `void t::multifunc()':
> wrong.cpp:35: no matching function for call to `t::funcptr ()'
>
> MM wrote:
> >
> > The file I've attached causes djgpp to kill the compiler and tell me to
> > submit a full bug report. I would do so, but first I want to make sure
> > this happens to others as well. If you could please take a look at the
> > code and tell me what I'm doing wrong or if it shouldn't be done like
> > that at all to begin with I'd greatly appreciate it.
> > Thanks,
- Raw text -