Update of /cvsroot/cppunit/cppunit2/include/cpputtools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20053/include/cpputtools
Modified Files:
value.h
Log Message:
* added detection of gcc stdlib & of the presence of std::wstring
Index: value.h
===================================================================
RCS file: /cvsroot/cppunit/cppunit2/include/cpputtools/value.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** value.h 23 Feb 2005 21:40:13 -0000 1.9
--- value.h 23 Feb 2005 22:45:56 -0000 1.10
***************
*** 92,96 ****
--- 92,98 ----
Value( long double value );
Value( const std::string &value );
+ #if !defined(CPPTL_NO_STD_WSTRING)
Value( const std::wstring &value );
+ #endif
Value( const Value &other );
***************
*** 193,201 ****
}
inline Value::Value( const std::wstring &value )
: holder_( new Impl::ValueHolderImpl<std::wstring>( value ) )
{
}
!
--- 195,204 ----
}
+ #if !defined(CPPTL_NO_STD_WSTRING)
inline Value::Value( const std::wstring &value )
: holder_( new Impl::ValueHolderImpl<std::wstring>( value ) )
{
}
! #endif
***************
*** 270,274 ****
const ValueType &newValue )
{
! return value = CppUTTools::Value( new Impl::ValueHolderImpl<ValueType>( newValue ) );
}
--- 273,278 ----
const ValueType &newValue )
{
! value = CppUTTools::Value( new CppUTTools::Impl::ValueHolderImpl<ValueType>( newValue ) );
! return value;
}
|