Update of /cvsroot/cppunit/cppunit2/include/cpptl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4444/include/cpptl
Modified Files:
config.h
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: config.h
===================================================================
RCS file: /cvsroot/cppunit/cppunit2/include/cpptl/config.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** config.h 4 Mar 2005 22:16:57 -0000 1.11
--- config.h 5 Mar 2005 12:21:07 -0000 1.12
***************
*** 56,59 ****
--- 56,63 ----
# endif
+ # if defined(__GNUC__) && (__GNUC__ < 3) && !defined(__STL_USE_NEW_IOSTREAMS)
+ # define CPPTL_NO_SSTREAM 1 // No #include <sstream>
+ # define CPPTL_NO_STL_SEQUENCE_AT 1 // No std::vector<>::at std::deque<>::at
+ # endif
// Common to all compilers
***************
*** 94,102 ****
/// doSomething( CppTL::Type<int>() );
/// @todo Should this be kept. It is not used at the time...
! #if defined(CPPTL_NO_TYPE_DEFAULT_ARG)
# define CPPTL_TYPE_DEFAULT_ARG(aType)
! #else
# define CPPTL_TYPE_DEFAULT_ARG(aType) = ::CppTL::Type<aType>()
! #endif
--- 98,114 ----
/// doSomething( CppTL::Type<int>() );
/// @todo Should this be kept. It is not used at the time...
! # if defined(CPPTL_NO_TYPE_DEFAULT_ARG)
# define CPPTL_TYPE_DEFAULT_ARG(aType)
! # else
# define CPPTL_TYPE_DEFAULT_ARG(aType) = ::CppTL::Type<aType>()
! # endif
!
!
! // CPPTL_NO_STL_SEQUENCE_AT is defined if the STL does not provide std::vector<>::at
! # if defined(CPPTL_NO_STL_SEQUENCE_AT)
! # define CPPTL_AT( container, index ) container[index]
! # else
! # define CPPTL_AT( container, index ) (container).at(index)
! # endif
|