Boost logo

Boost :

From: Carlo Wood (carlo_at_[hidden])
Date: 2002-09-05 11:57:29


On Wed, Sep 04, 2002 at 09:51:46AM +0100, Anthony Williams wrote:
> Carlo Wood writes:
> > Also, the input iterator cannot be used because the code
> > makes use of pointers into it at arbitrary places. Using
> > an input iterator would only be possible if we'd first copy
> > the whole input to a temporal string - and that makes no sense.
>
> You could specify that only forward iterators were supported.

Yes, but such iterators would in practise just be wrappers
around a char const*, and then we need a wrapper function
to pass these iterators to the general interface because
we almost always start with a typeid().name() (a char const*)!

Since the input has nothing to do with allocation, lets
just use char const* as input to begin with (for the most
general interface).

-- 
Carlo Wood <carlo_at_[hidden]>

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