25 Mar
2014
25 Mar
'14
2:48 p.m.
AMDG On 03/24/2014 12:10 AM, Joaquín Mª López Muñoz wrote:
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>());
The other solution is to define your own placeholders. You just need to specialize boost::is_placeholder. In Christ, Steven Watanabe