Boost logo

Boost Users :

Subject: Re: [Boost-users] boost bind with const-references
From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2010-11-27 15:14:24


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


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