Simplify Num2String.

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1003 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
jfbastien 2009-03-10 19:55:59 +00:00
parent a27150df64
commit 8642f606d9

View file

@ -208,10 +208,7 @@ String Num2String(typename String::size_type value)
{
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
{