open-source-parsers/jsoncpp

Use std::ostringstream for numeric formatting

Open

#419 aberto em 11 de fev. de 2016

Ver no GitHub
 (1 comment) (0 reactions) (0 assignees)C++ (2.602 forks)batch import
bughelp wanted

Métricas do repositório

Stars
 (7.542 stars)
Métricas de merge de PR
 (Mesclagem média 18h 26m) (10 fundiu PRs em 30d)

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.

Guia do colaborador