Boost logo

Boost :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2004-09-06 11:13:59


"Eric Niebler" <eric_at_[hidden]> wrote in message
news:413BF440.20505_at_boost-consulting.com...
>
> Jonathan Turkanis wrote:
> > "Eric Niebler" <eric_at_[hidden]> wrote:
> >>2) s1 kind of looks like $1, which is the perl equivalent.
> >
> >
> > I didn't think of 2). Did you put in in the docs?
>
>
> No. Guess I should.
>
>
> > FWIW, capital 'S' looks more
> > like '$' to me. E.g.,
> >
> > '<' >> (S1= +_w) >> '>' >> -*_ >> "</" >> S1 >> '>'
>
>
> This is true, but it runs contrary to Boost's naming conventions. ALL
> CAPS is for macros.

I was thinking of vecS .. I forgot that 1 is a capital. :-)

> >>That said, I'm open to suggestions for avoiding the name conflicts. I
> >>would consider switching back to _1 _2 _3 if the technical problems were
> >>overcome and if people liked it better.
> >
> >
> > May I assume you have considered reusing the placeholders from boost::bind?
> > There doesn't seem to be much operator overloading involving boost::arg<>.
>
>
> I thought of that. Trouble is, xpressive's placeholders need to have an
> operator=, which must be a member. Besides, I rely on ADL to find
> xpressive's operators, and bind's placeholders are not in the correct
> namespace for my purposes.

This class of placeholders is a big problem.

Jonathan


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