If setiosflags() sets flags, then what unsets them? I thought it would be unsetiosflags().
This is a discussion on unsetting flags within the C++ Programming forums, part of the General Programming Boards category; If setiosflags() sets flags, then what unsets them? I thought it would be unsetiosflags()....
If setiosflags() sets flags, then what unsets them? I thought it would be unsetiosflags().
setiosflags calls setf, so you can just use unsetf to unset flags, or use resetiosflags. You might even be able to do something like: setiosflags(~ios_base::showbase);