Boost logo

Boost :

From: Kevlin Henney (kevlin_at_[hidden])
Date: 2000-11-30 18:27:29


In message <906dth+ds3m_at_[hidden]>, William Kempf <sirwillard_at_my-
deja.com> writes
>> Where X is an appropriate but short name we haven't yet thought of
>that
>> indicates dimension :->
>
>Array<int, 3> A3(dim(10) + dim(20) + dim(30));

I had been hoping to avoid the obvious BASIC reference, but I must
confess that it has a certain appeal.

>Or even:
>
>Array<int, 3> A3(dim(10), dim(20), dim(30));
>
>by overloading the comma operator?

It would have to be

        Array<int, 3> A3((dim(10), dim(20), dim(30));

And even then, I feel a little uncomfortable overloading the comma
operator in public :-}

Kevlin
____________________________________________________________

  Kevlin Henney phone: +44 117 942 2990
  Curbralan Limited mobile: +44 7801 073 508
  mailto:kevlin_at_[hidden] fax: +44 870 052 2289
  http://www.curbralan.com
____________________________________________________________


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