|
Boost : |
From: Pavol Droba (droba_at_[hidden])
Date: 2003-10-26 12:21:20
On Mon, Oct 27, 2003 at 02:07:47AM +1100, Thorsten Ottosen wrote:
[snip]
> > What I might considers is a kind of automatic conversion to an arbitrary
> > container.
> > Something like
> >
> > string str=range.copy();
> >
> > "Copy" would return a stub object which will have implicit conversion to
> > an arbitraty type.
> > ( using enable_if, it can restricted to containers only )
>
> IMO, not a good idea. I think all these twist/hacks that must be made to the
> iterator_range<> says that
> it's not specialized enough. We need a substring.
>
Actualy, I realized from our conversation, that the definition of a "string"
is very important, and should be clearly stated in the docs.
Thanks for reminding.
Regards,
Pavol
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk