ostream state preservation
This commit is contained in:
@@ -240,6 +240,7 @@ std::ostream& operator<<(std::ostream& strm, const Escaper& esc)
|
||||
if(c>=' ' && c<='~') { // isprint()
|
||||
strm.put(c);
|
||||
} else {
|
||||
Restore R(strm);
|
||||
strm<<"\\x"<<std::hex<<std::setw(2)<<std::setfill('0')<<unsigned(c&0xff);
|
||||
}
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user