Boost logo

Boost Users :

Subject: Re: [Boost-users] phoenix bind vs boost bind?
From: Robert Dailey (rcdailey.lists_at_[hidden])
Date: 2014-04-12 15:49:26


On Thu, Apr 10, 2014 at 3:42 PM, Vee Kay <vkicefire_at_[hidden]> wrote:
> On 08/04/14 14:40, Robert Dailey wrote:
>>
>> If I intermingle them, I have a lot of issues out of placeholder
>> ambiguities that results in more boilerplate code (i.e. using
>> boost::phoenix::placeholders::_1 everywhere).
>>
>
> You should be able to use arg1 instead, they are the same type:
>
> https://github.com/boostorg/phoenix/blob/88b1eb2837e64e1808d755844fe1f868119600cc/include/boost/phoenix/core/preprocessed/argument_10.hpp

By convention I use _1 placeholders because I'm familiar with those
from boost::bind. In any case, this doesn't particularly answer the
root of my question which is: which one (which bind, not which
placeholders) should I be using?


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