Skip to content

Commit

Permalink
Merge pull request #146 from yo35/gcc-4-8-5
Browse files Browse the repository at this point in the history
Fix build error with GCC 4.8.5
  • Loading branch information
d99kris committed Jul 30, 2023
2 parents 9d9c2cc + 019b07e commit 4e69a61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/rapidcsv.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,13 @@ namespace rapidcsv
else if (typeid(T) == typeid(float))
{
std::ostringstream out;
out << std::defaultfloat << std::setprecision(9) << pVal;
out << std::setprecision(9) << pVal;
pStr = out.str();
}
else if (typeid(T) == typeid(double))
{
std::ostringstream out;
out << std::defaultfloat << std::setprecision(17) << pVal;
out << std::setprecision(17) << pVal;
pStr = out.str();
}
else
Expand Down
2 changes: 1 addition & 1 deletion tests/test092.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ int main()
std::string loc = "de_DE"; // uses comma (,) as decimal separator
try
{
std::locale::global(std::locale(loc));
std::locale::global(std::locale(loc.c_str()));
}
catch (const std::exception& ex)
{
Expand Down

0 comments on commit 4e69a61

Please sign in to comment.