Re: [Cppunit-devel] Added cppunittest examples...
Brought to you by:
blep
From: Steve M. R. <ste...@vi...> - 2001-06-01 21:32:58
|
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. -Steve -- by Rocket to the Moon, by Airplane to the Rocket, by Taxi to the Airport, by Frontdoor to the Taxi, by throwing back the blanket and laying down the legs ... - They Might Be Giants |