Boost logo

Boost Users :

Subject: Re: [Boost-users] Nesting bind with shared_ptr<T>::operator* and ref
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2013-06-03 20:33:46


AMDG

On 06/03/2013 01:15 PM, Chris Stankevitz wrote:
> Hello,
>
> Can you please help me uncomment out the last "bind" of the program
> pasted below? The problem is that it will require some kind of
> mechanism to dereference the shared_ptr.
>

Use Boost.Phoenix which has support for operators.

using boost::phoenix::bind;
using boost::phoenix::placeholders::_1;
bind(x, *bind(GetC, _1))

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