Re: [Cppunit-devel] Added cppunittest examples...
Brought to you by:
blep
From: Bastiaan B. <bas...@li...> - 2001-06-01 21:52:14
|
Steve M. Robbins wrote: >On Fri, Jun 01, 2001 at 11:34:35PM +0200, Bastiaan Bakker wrote: > > >>I've added a Makefile.am to examples/cppunittest. Now it tries to >>compile the code, g++ gives an error though: >> >>TestCallerTest.cpp:24: ISO C++ forbids taking the address of a bound >>member function to form a pointer to member function >> > >You can't say "&foo" if foo is a member function of class X. >Use "&X::foo", instead. > Yes, I figured that out too. I find the error messages somewhat cryptic sometimes, especially when the C++ nowhere contains the term 'bound member function'. Thanks, Bastiaan > >-Steve > > |