Boost logo

Boost Users :

Subject: Re: [Boost-users] pointer to member function of multi_index
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-03-18 18:18:27


AMDG

Sandeep Gupta wrote:
> On first glance I missed how to go about using them. I am afraid this
> approach fails as well.
> The commands:
> vector<int> myvec;
> bind(push_back, myvec, arg1)(5);
>
> error: no class template named ‘result’ in ‘struct
> boost::phoenix::function<boost::phoenix::stl::push_back>’
>
> Again thanks so much more so for being patient.
>

phoenix::function doesn't need bind:

phoenix::push_back(phoenix::ref(myvec), arg1)(5);

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