Boost logo

Boost :

Subject: Re: [boost] [bind] BOOST_BIND_NO_PLACEHOLDERS and unspecified-placeholder-type's
From: Joaquin M Lopez Munoz (joaquin_at_[hidden])
Date: 2014-03-25 12:50:13

Peter Dimov <lists <at>> writes:

> Joaquín Mª López Muñoz wrote:
> > Hello,
> >
> > The non-documented BOOST_BIND_NO_PLACEHOLDERS macro suppresses the
> > definition of (anonymous namespace)::_1, (anonymous namespace)::_2,
> > etc., presumably to cope with potential clashes with other libs'
> > placeholders such as Boost.Lambda's when in the presence of using
> > directives.
> I think that the presumption is incorrect.

Yes, you're right. The rest of th argument remains the same, though.

> > Maybe Boost.Bind documentation can be changed so that
> > BOOST_BIND_NO_PLACEHOLDERS and boost::arg<> are documented?
> I'm a bit reluctant to do that. The macro, in particular, will likely go
> away once the placeholders finally move to a namespace. boost::arg<> will
> probably work for all eternity, but there is a documented way to define
> placeholders, as Steven notes.

But this is not documented either: unless I'm mistaken, Boost.Bind docs
don't do any mention to boost::is_placeholder.

Joaquín M López Muñoz
Telefónica Digital

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