forked from organicmaps/organicmaps
2x faster strings::to_string()
This commit is contained in:
parent
7ba95b7f29
commit
faf2808ee2
1 changed files with 2 additions and 4 deletions
|
@ -191,11 +191,9 @@ inline string to_string(char const * s)
|
|||
return s;
|
||||
}
|
||||
|
||||
template <typename T> string to_string(T t)
|
||||
template <typename T> inline string to_string(T t)
|
||||
{
|
||||
ostringstream ss;
|
||||
ss << t;
|
||||
return ss.str();
|
||||
return std::to_string(t);
|
||||
}
|
||||
|
||||
namespace impl
|
||||
|
|
Loading…
Add table
Reference in a new issue