open-source-parsers/jsoncpp

Use std::ostringstream for numeric formatting

Open

#419 aperta il 11 feb 2016

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)C++ (2602 fork)batch import
bughelp wanted

Metriche repository

Star
 (7542 star)
Metriche merge PR
 (Merge medio 18h 26m) (10 PR mergiate in 30 g)

Descrizione

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.

Guida contributor