From 8642f606d977bf37f9930f86bb3af69736bc221a Mon Sep 17 00:00:00 2001 From: jfbastien Date: Tue, 10 Mar 2009 19:55:59 +0000 Subject: [PATCH] Simplify Num2String. git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1003 7ec92016-0320-0410-acc4-a06ded1c099a --- test/flex_string/main.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test/flex_string/main.cpp b/test/flex_string/main.cpp index 0c775b8..c7c21a3 100644 --- a/test/flex_string/main.cpp +++ b/test/flex_string/main.cpp @@ -208,10 +208,7 @@ String Num2String(typename String::size_type value) { if(String::npos != value) { - typedef typename String::value_type CharType; - std::basic_ostringstream, std::allocator > stream; - stream << OpenCurlyString() << value << CloseCurlyString(); - return stream.str().c_str(); + return Num2String(value); } else {