return i;
}
+
+// MSVC2010 includes it's own versions of these
+#if !defined(_MSC_VER) || _MSC_VER < 1600
+
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;
return f;
}
+#endif
+
+inline s32 stoi(std::wstring s)
+{
+ return atoi(wide_to_narrow(s).c_str());
+}
+
inline std::string itos(s32 i)
{
std::ostringstream o;