
Message du 06/05/11 02:58 De : "Vladimir Batov" A : boost@lists.boost.org Copie à : Objet : Re: [boost] [review] string convert
Vicente BOTET wanadoo.fr> writes: .. I suspect that these complex classes you are talking off don't define the input/ouput stream operator to work with your conversion framework.
Jeez, is it really that hard to accept that 'convert' works and is used with many classes complex or not. Say, a Train class is complex as it has a *lot* of stuff. We serialize/unserialize the class to/from XML using 'convert'. Train has op>>() op<<().
The classes I expect to be used are regular classes with value semantics.
Our classes with value- and pointer-semantics (pimpl-based) are as regular/normal. They just happen to be not your classes.
When I used regular classes I was not referring to normal or abnormal classes, but what Adobe ASL and Stepanov call regular types. Sorry for the imprecision. You can assimilate a regular class as one that behaves like a built-in type. But, please see http://www.google.fr/url?sa=t&source=web&cd=1&sqi=2&ved=0CBwQFjAA&url=http%3... for more information) or google for Fundamentals of Generic Programming, regular types, Stepanov. Best, Vicente