[Cppunit-cvs] cppunit2/include/cpptl sharedptr.h,1.1,1.2
Brought to you by:
blep
From: Baptiste L. <bl...@us...> - 2005-02-23 21:36:33
|
Update of /cvsroot/cppunit/cppunit2/include/cpptl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27117/include/cpptl Modified Files: sharedptr.h Log Message: * changed implementation to avoid warning (operator -> returning void on solaris) Index: sharedptr.h =================================================================== RCS file: /cvsroot/cppunit/cppunit2/include/cpptl/sharedptr.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** sharedptr.h 15 Nov 2004 08:22:51 -0000 1.1 --- sharedptr.h 23 Feb 2005 21:36:24 -0000 1.2 *************** *** 107,111 **** } ! void *operator ->() const { // assert( p_ != 0 ) --- 107,111 ---- } ! void *deref() const { // assert( p_ != 0 ) *************** *** 193,197 **** PointeeType *operator ->() const { ! return static_cast<PointeeType *>( SuperClass::operator ->() ); } }; --- 193,197 ---- PointeeType *operator ->() const { ! return static_cast<PointeeType *>( SuperClass::deref() ); } }; |