Sorry, I posted too early, I found the answer in the documentation. I was looking around forever and I couldn't find it :)
Does the Boost.Iostreams library have overloaded bitshift operators? That way I could do:
boost::iostreams::stream<myclass> theOutputStream;
theOutputStream << MyData;