I have been lazy and used public inheritance from that base i/o handle. I should use protected inheritance to prevent slicing, and expose all the public functions by hand.
I have been lazy and used public inheritance from byte_io_handle and file_handle. I should use protected inheritance to prevent slicing, and expose all the public functions by hand.