On Sat, Mar 28, 2009 at 1:11 AM, V S P
<toreason@fastmail.fm> wrote:
so wanted to know if there is a way to
extend lexical_cast to support my custom classes
Yes, there is. Make your class is serializable to the ostream. lexical_cast uses std streams (stringstream) for conversion.
Just overload the operator << in your namespace and write out any data to the stream how you would like it to appear.
Regards,
Ovanes