]> git.stg.codes - stg.git/blobdiff - stglibs/common.lib/common.cpp
Added specialization of str2x for doubles.
[stg.git] / stglibs / common.lib / common.cpp
index 22ec354b002442eab12f55b8868ddee7254669e8..8b62e68b0fad70adfd55e8c4c445c1b352c0b43a 100644 (file)
@@ -752,6 +752,11 @@ if (errno == ERANGE)
 
 return 0;
 }
+//---------------------------------------------------------------------------
+int str2x(const std::string & str, double & x)
+{
+return strtodouble2(str.c_str(), x);
+}
 #ifndef WIN32
 //---------------------------------------------------------------------------
 int str2x(const std::string & str, int64_t & x)