basic_ios& copyfmt(const basic_ios& other);
Copies the state of the stream other into *this. This is done in the following sequence:
1) Calls every callback registered by register_callback() passing erase_event as parameter
2) Copies all member objects from other to *this except for rdstate(), the exception mask, and rdbuf(). In particular, makes copies of the locale, the formatting flags, the contents of the arrays std::ios_base::iword and std::ios_base::pword (but not the iw