Skip to content

Commit

Permalink
dumb_stringstream initialization bugfix. (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvereb authored and jtv committed Jan 24, 2019
1 parent dca382e commit de7c641
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/strconv.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ bool valid_infinity_string(const char str[]) noexcept
template<typename T> class dumb_stringstream : public std::stringstream
{
public:
dumb_stringstream() : std::stringstream{}
dumb_stringstream() : std::stringstream()
{
this->imbue(std::locale::classic());

Expand Down Expand Up @@ -232,8 +232,7 @@ template<typename T> inline void from_string_float(const char Str[], T &Obj)
S.seekg(0);
S.clear();
S.str(Str);
S >> result;
ok = S.good() || S.eof();
ok = static_cast<bool>(S >> result);
}
break;
}
Expand Down

0 comments on commit de7c641

Please sign in to comment.