|
From: <jfb...@us...> - 2009-03-10 19:56:19
|
Revision: 1003
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1003&view=rev
Author: jfbastien
Date: 2009-03-10 19:55:59 +0000 (Tue, 10 Mar 2009)
Log Message:
-----------
Simplify Num2String.
Modified Paths:
--------------
trunk/test/flex_string/main.cpp
Modified: trunk/test/flex_string/main.cpp
===================================================================
--- trunk/test/flex_string/main.cpp 2009-03-10 18:36:42 UTC (rev 1002)
+++ trunk/test/flex_string/main.cpp 2009-03-10 19:55:59 UTC (rev 1003)
@@ -208,10 +208,7 @@
{
if(String::npos != value)
{
- typedef typename String::value_type CharType;
- std::basic_ostringstream<CharType, std::char_traits<CharType>, std::allocator<CharType> > stream;
- stream << OpenCurlyString<String>() << value << CloseCurlyString<String>();
- return stream.str().c_str();
+ return Num2String<String, typename String::size_type>(value);
}
else
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|