Does the Boost.Iostreams library have overloaded bitshift operators? That way I could do:

boost::iostreams::stream<myclass> theOutputStream;
theOutputStream << MyData;