Boost logo

Boost :

From: Larry Evans (jcampbell3_at_[hidden])
Date: 2001-05-25 07:30:33


joel de guzman wrote:
...skipping

> I'd like to be consistent. If we are to reuse | to mean alternative,
> what's wrong with reusing prefix + and *? Still I'd go for the
> iterator since it addresses something that the * and + couldn't do:
>
> repeat<8, 8>(a); // repeat 'a' exactly 8 times
>

One more possibility:
    a(8,8)
    a(8)
which would require, I think, virtual methods:
   Parser::operator()(int,int);
   Parser::operator()(int);


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