Boost logo

Boost Users :

Subject: Re: [Boost-users] [Bind] Placeholder scope
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-06-06 19:33:10


AMDG

Robert Jones wrote:
> I have just spent several hours digging out a compile problem which turned
> out to be a conflict between Boost.Bind and Boost.Lambda, which seems
> to arise because the Boost.Bind placeholders (_1, etc.) are in the global
> namespace, so if "using namespace boost::lambda;" is in effect the Bind
> placeholder is used rather than the Lambda placeholder.
>
> I wonder why the Bind placeholders are in the global namespace?
>

It's an historical artifact which has never been fixed.

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net