
1 Mar
2009
1 Mar
'09
12:41 a.m.
and for user types (uses operator<<() and operator>>()):
convert<spirit::tag::stream>::to() convert<spirit::tag::stream>::from()
Is it possible to have something like
convert<int>::from() convert<user_type>::from()
(we do not need 'to' with the interface).
Sure. I just wanted to highlight my point of the API's being compatible.
(spirit::stream is an instance of spirit::tag::stream). The idea would be to use Spirit directly if you need more powerful constructs like sequences and convert for conversion of single items.
For more powerful constructs my preference will probably be to "use Spirit directly" literally instead of through the (likely limiting) convert interface.
Agreed. Regards Hartmut