Replaced std::defaultfloat with unsetf call. defaultfloat is not available in gcc <5

This commit is contained in:
Jordan Cristiano 2015-05-15 18:58:36 -04:00
parent 90c0fdce58
commit fc622bc5ef
2 changed files with 4 additions and 2 deletions

View File

@ -39,6 +39,7 @@ namespace NetHandlers
<< " (" << data->x << " (" << data->x
<< " " << data->y << " " << data->y
<< " " << data->z << ")" << " " << data->z << ")"
<< std::defaultfloat << std::setprecision(oldPrecision); << std::setprecision(oldPrecision);
out.unsetf(std::ios_base::floatfield);
} }
} }

View File

@ -41,6 +41,7 @@ namespace NetHandlers
<< " " << data->x << " " << data->x
<< " " << data->y << " " << data->y
<< " " << data->z << " " << data->z
<< std::defaultfloat << std::setprecision(oldPrecision); << std::setprecision(oldPrecision);
out.unsetf(std::ios_base::floatfield);
} }
} }