Hi,

Does anyone know a better approach to restore the precision value after using 
setprecision()?

I found something online that recommended

std::streamsize prec = std::ios_base::precision();
std::setprecision(2);
.
.
.
std::setprecision(prec);

This makes sense and would work, but I don't know if Coverity will recognize 
this as the correct way to restore the stream's format.

Thanks,
Ryan
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to