Skip to content

Commit

Permalink
Reenable fast float
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbeattie42 committed Oct 16, 2024
1 parent f95197d commit 2db3c22
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions OpenSim/Common/IO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
#endif

#include "fast_float/fast_float.h"
#include <sstream>
// #include <sstream>

// CONSTANTS

Expand Down Expand Up @@ -470,10 +470,10 @@ double IO::
stod(const std::string& __str, std::size_t* __idx)
{
double result;
std::istringstream iss(__str);
iss.imbue(std::locale(_locale));
iss >> result;
// fast_float::from_chars(__str.data(), __str.data()+__str.size(), result);
// std::istringstream iss(__str);
// iss.imbue(std::locale(_locale));
// iss >> result;
fast_float::from_chars(__str.data(), __str.data()+__str.size(), result);
return result;
}
//_____________________________________________________________________________
Expand Down

0 comments on commit 2db3c22

Please sign in to comment.