Boost logo

Boost Users :

Subject: Re: [Boost-users] boost bind with const-references
From: Kraus Philipp (philipp.kraus_at_[hidden])
Date: 2010-11-28 03:41:55


Am 27.11.2010 um 21:14 schrieb Jeff Flinn:

> Kraus Philipp wrote:
>> Hello,
>> how I can use the boost::bind with two const reference parameter
>> like:
>> boost::bind( &myclass::mymethod, this, p_env, p_com)
>
> Like so:
>
> boost::bind
> ( &myclass::mymethod
> , this
> , boost::cref(p_env)
> , boost::cref(p_com))
>
> Jeff

Thanks, I did not known the cref command

Phil


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