fix yaml emitter on bsd

This commit is contained in:
gmueller 2011-01-25 22:47:15 +01:00
parent e041357a06
commit 6f0fcc6406

View File

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