Boost.Iostreams seems to be the wrong tool for the job here.
The goal of the source and sink mechanism is to allow you to specify where data gets serialized to - for example whether you want to write to a file, a location in memory or an i/o port.
What you want to specify is how a certain kind of data gets serialized. The correct tool in Boost for this would be Boost.Serialization.