Boost logo

Boost :

Subject: [boost] [bind] BOOST_BIND_NO_PLACEHOLDERS and unspecified-placeholder-type's
From: Joaquín Mª López Muñoz (joaquin_at_[hidden])
Date: 2014-03-24 03:10:17


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. The problem
with this is that using Boost.Bind without placeholder
names requires writing code such as

   bind(f,boost::arg<1>(),boost::arg<2>());

but boost::arg<> is not documented!! (in fact, Boost.Bind synopsis
explicitly defines _1, _2 etc. as having undocumented
types unspecified-placeholder-type-1, unspecified-placeholder-type-2 and
so on).

Maybe Boost.Bind documentation can be changed so that
BOOST_BIND_NO_PLACEHOLDERS and boost::arg<> are
documented?

Thank you,

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

________________________________

Este mensaje se dirige exclusivamente a su destinatario. Puede consultar nuestra política de envío y recepción de correo electrónico en el enlace situado más abajo.
This message is intended exclusively for its addressee. We only send and receive email on the basis of the terms set out at:
http://www.tid.es/ES/PAGINAS/disclaimer.aspx


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