Boost logo

Boost :

From: Hurd, Matthew (hurdm_at_[hidden])
Date: 2003-09-03 08:37:00

> From: Markus Werle
> Subject: [boost] Re: Lambda conflicts
> {
> namespace l = boost::lambda;
> [...] l::_1 [...]
> }
> and lookup rules never bite

Yep, that's what I do, but it never looks quite so neat ;-)
> > Would be nice to solve the conflicts with boost::bind and
> > lambda::bind.
> The conflict is due to the existence of ::_1 in the boost library
> (placeholders.hpp)
> I requested ::_1 to be moved to namespace boost::bind or
> boost::anything_else some months ago.
> Peter Dimov rejected this, David Abrahamas rejected the
> rejection,
> but then nothing happened. I consider the _1 living in global
> namespace
> as a really severe, annoying bug (OK, admittedly I consider
> most code not living in its own namespace at least as suboptimal)
> > Also there is, at least, a conflict with _1 between spirit
> and lambda
> > that has bitten me, perhaps others...
> As long as all those live in their own namespace
> a simple "using that::_1;" saves you from all pain.
> For me the namespace alias trick is the one to get around
> any failure, even with broken libraries at hand.

Thanks Markus. Perhaps ::_1 will vanish one day.

The bright spot is it smacks of an embarrassment of riches rather than a
paucity. It is nice to have such problems :-) If only I was more capable
then I could fix them...

> Markus



Boost list run by bdawes at, gregod at, cpdaniel at, john at