fix yaml emitter on bsd

This commit is contained in:
gmueller 2011-01-25 22:47:15 +01:00
parent e041357a06
commit 6f0fcc6406
1 changed files with 3 additions and 0 deletions

View File

@ -106,6 +106,9 @@ namespace YAML
EmitSeparationIfNecessary();
std::stringstream str;
// fix for freebsd
str.precision(15);
str.setf(std::ios_base::floatfield, std::ios_base::fixed);
str << value;
m_stream << str.str();