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:
parent
a27150df64
commit
8642f606d9
1 changed files with 1 additions and 4 deletions
|
@ -208,10 +208,7 @@ String Num2String(typename String::size_type value)
|
||||||
{
|
{
|
||||||
if(String::npos != value)
|
if(String::npos != value)
|
||||||
{
|
{
|
||||||
typedef typename String::value_type CharType;
|
return Num2String<String, typename String::size_type>(value);
|
||||||
std::basic_ostringstream<CharType, std::char_traits<CharType>, std::allocator<CharType> > stream;
|
|
||||||
stream << OpenCurlyString<String>() << value << CloseCurlyString<String>();
|
|
||||||
return stream.str().c_str();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue