open-source-parsers/jsoncpp

Use std::ostringstream for numeric formatting

Open

#419 opened on Feb 11, 2016

View on GitHub
 (1 comment) (0 reactions) (0 assignees)C++ (7,542 stars) (2,602 forks)batch import
bughelp wanted

Description

We've had lots of problems with std::snprintf. E.g. #418.

As BillyGoto says:

Could we switch to std::ostringstream instead? Its numeric formatting is actually specified in terms of printf's output, and it's everywhere.

Contributor guide