Boost logo

Boost :

From: Björn Karlsson (bjorn.karlsson_at_[hidden])
Date: 2002-01-25 11:08:18


> From: Stewart, Robert [mailto:stewart_at_[hidden]]
>
> Of course. Hmmm. How about this:
>
> lexical_convert(source)->(target);
>
> The idea is that lexical_convert() returns an object that
> defines operator
> ->() that returns an object that will take a non-const
> reference to some
> type for the conversion. I don't think this would be a problem to
> implement, but then I haven't tried it!
>

As aesthetically pleasing as I find the syntax, I do feel the solution is
somewhat contrived. It'd fit well with "people like us", but probably not
with "the rest" ;-)

Bjorn



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