From: Scott Woods (scottw_at_[hidden])
Date: 2005-09-19 17:09:20
----- Original Message -----
From: "Rob Stewart" <stewart_at_[hidden]>
Sent: Tuesday, September 20, 2005 4:23 AM
Subject: Re: [boost] [Review] xpressive
> > >>> It looks like the current setup is not STL-friendly. Most of the
> > > That's completely STL-friendly: there are iterators. When using
> > completely useless isn't unfriendly? You'll have to use a (mutable)
> why not just pass ++pieces.begin()? Furthermore, as I said, one
> > >>> in a 0-based array culture, like C++ (or C). C++ people would expect
Several interesting points but nothing to convince me that the 1-based
to the results vector is anything other than a legacy attribute of the
interface. In fact, quite the opposite.
The scale of the relevant history was a small surprise. Directing the
to the TR1 and C++0x standards efforts sounded reasonable to me. As one of
"activists" I wouldn't feel comfortable consuming further time and resource
such a small wrinkle. Someone's cute, original idea (K. Thompson?) is going
around for some time yet, in spite of the changes in software development
generic coding) over the intervening decades.
An idea did bubble to the surface while reading this thread. If the
1-based access relates to the notion that the index is a logical id for a
of some composite object (e.g. a class), can this be taken further? Are we
dealing with a lexical representation of a "record", "row" or "message"?
Could the results machinery be augmented with a typelist somehow? Access
through the results object might invoke an appropriate boost cast. NYI?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk