Some functions/methods/operators manipulate the flags of their std::ostream argument for examples using std::hex and/or std::setw without saving the initial flags() and restoing it when done and thus polluting the state of the ostream.
Examples are:
HexDump <<
ResponseHandler::handleResponse
ClientResponseHandler::handleResponse
ServerResponseHandler::handleResponse
Also affected but in pvData:
shared_ptr_base::show_stack
Be aware that <<std::hex not only affect the next value but all future values.
Some functions/methods/operators manipulate the flags of their
std::ostream
argument for examples usingstd::hex
and/orstd::setw
without saving the initialflags()
and restoing it when done and thus polluting the state of the ostream.Examples are:
Also affected but in pvData:
Be aware that
<<std::hex
not only affect the next value but all future values.The solution is to save and restore the flags: