
28 Mar
2009
28 Mar
'09
12:36 a.m.
On Sat, Mar 28, 2009 at 1:11 AM, V S P
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