aboutsummaryrefslogtreecommitdiff
path: root/src/utility.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utility.h')
-rw-r--r--src/utility.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/utility.h b/src/utility.h
index 28732a099..84838c0c7 100644
--- a/src/utility.h
+++ b/src/utility.h
@@ -809,6 +809,11 @@ inline s32 stoi(std::string s)
return atoi(s.c_str());
}
+inline s32 stoi(std::wstring s)
+{
+ return atoi(wide_to_narrow(s).c_str());
+}
+
inline float stof(std::string s)
{
float f;
@@ -819,11 +824,6 @@ inline float stof(std::string s)
#endif
-inline s32 stoi(std::wstring s)
-{
- return atoi(wide_to_narrow(s).c_str());
-}
-
inline std::string itos(s32 i)
{
std::ostringstream o;