Boost logo

Boost :

From: Arkadiy Vertleyb (vertleyb_at_[hidden])
Date: 2005-10-02 16:53:17


"Larry Evans" <cppljevans_at_[hidden]> wrote

> On 10/02/2005 04:00 PM, Jonathan Wakely wrote:
> > Larry Evans wrote:
> >>On 09/27/2005 05:05 PM, Calum Grant wrote:
> >>
> >>>An early RML did use tuples indexed in the way you describe. I did use
> >>>enums - writing magic numbers is very bad for readibility and
> >>
> >> ^^^^^^^^^^^^^ I guess you mean an enumeration here?
> >
> > I read it to mean he used enums *because* writing magic numbers is bad.
> > However, he prefers to read ...
> Ah! Thanks for clarifying. I guess the "magic number" would be
> the 0 in get<0>(a_tuple) for the first element in the tuple.
> >
> >
> >>>maintainability. Personally I prefer to read
> >>>
> >>> customers.name
> [snip]
> >>Or, customers.get<customers::name>()

It's pretty easy to achieve something like customers[customers::name()]. In
RTL we do just this.

Regards,
Arkadiy


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