Boost logo

Boost :

Subject: Re: [boost] Boost.Convert+Boost.Parameter
From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2009-02-28 19:41:34


> > 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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk