Boost logo

Boost Users :

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


AMDG

Sandeep Gupta wrote:
> On Tue, Mar 17, 2009 at 7:57 PM, Steven Watanabe <watanabesj_at_[hidden]> wrote:
>
>> However, it is not usually a good idea to rely on the exact
>> signature of library member functions. For instance, the standard
>> library allows member functions to have extra default arguments.
>> In the case of multi_index, using a reference to const will not
>> always work because multi_index uses call_traits
> I see. So I take it that its best to avoid creating function objects
> or pointer to standard library member functions.
>

It's okay to create a function objects like those in phoenix
http://www.boost.org/libs/spirit/phoenix/doc/html/phoenix/container.html
as long as you don't bind a member pointer in the process.

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