Replaced std::defaultfloat with unsetf call. defaultfloat is not available in gcc <5
This commit is contained in:
parent
90c0fdce58
commit
fc622bc5ef
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user