Update of /cvsroot/cppunit/cppunit2/src/cpput
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6276/src/cpput
Modified Files:
testsuite.cpp
Log Message:
* added config macro CPPTL_NO_SSTREAM and CPPTL_NO_STL_SEQUENCE_AT for gcc 2.95
* added portability macro CPPTL_AT to access sequence container portably
Index: testsuite.cpp
===================================================================
RCS file: /cvsroot/cppunit/cppunit2/src/cpput/testsuite.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** testsuite.cpp 27 Feb 2005 14:38:27 -0000 1.7
--- testsuite.cpp 5 Mar 2005 12:29:39 -0000 1.8
***************
*** 52,60 ****
TestSuite::testAt( int index ) const
{
! #ifdef CPPUT_HAS_VECTOR_AT
! return tests_.at( index );
! #else
! return tests_[ index ];
! #endif
}
--- 52,56 ----
TestSuite::testAt( int index ) const
{
! return CPPTL_AT( tests_, index );
}
|