Replaced std::defaultfloat with unsetf call. defaultfloat is not available in gcc <5
This commit is contained in:
1 parent
90c0fdce58
commit
fc622bc5ef
2 files changed
+4
-2
No files matched your search
@@ -39,6 +39,7 @@ namespace NetHandlers
|
||||
<< " (" << data->x
|
||||
<< " " << data->y
|
||||
<< " " << data->z << ")"
|
||||
<< std::defaultfloat << std::setprecision(oldPrecision);
|
||||
<< std::setprecision(oldPrecision);
|
||||
out.unsetf(std::ios_base::floatfield);
|
||||
}
|
||||
}
|
||||
@@ -41,6 +41,7 @@ namespace NetHandlers
|
||||
<< " " << data->x
|
||||
<< " " << data->y
|
||||
<< " " << data->z
|
||||
<< std::defaultfloat << std::setprecision(oldPrecision);
|
||||
<< std::setprecision(oldPrecision);
|
||||
out.unsetf(std::ios_base::floatfield);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user