[Cppunit-cvs] cppunit2/include/cpptl stringtools.h,1.2,1.3
Brought to you by:
blep
From: Baptiste L. <bl...@us...> - 2005-02-23 21:38:25
|
Update of /cvsroot/cppunit/cppunit2/include/cpptl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27767/include/cpptl Modified Files: stringtools.h Log Message: * worked around call ambiguity for std::string::insert() Index: stringtools.h =================================================================== RCS file: /cvsroot/cppunit/cppunit2/include/cpptl/stringtools.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** stringtools.h 20 Nov 2004 09:15:00 -0000 1.2 --- stringtools.h 23 Feb 2005 21:38:16 -0000 1.3 *************** *** 22,26 **** while ( v != 0 ) { ! s.insert( 0, 1, digits[v % 10] ); v /= 10; } --- 22,28 ---- while ( v != 0 ) { ! // Thoses cast are necessary to resolve an ambiguity between insert( char *, unsigned, char ) ! // and insert( unsigned, unsigned, char) with Sun CC. ! s.insert( (unsigned int)0, (unsigned int)1, digits[v % 10] ); v /= 10; } |