27 Nov
2010
27 Nov
'10
7:44 p.m.
Hello, how I can use the boost::bind with two const reference parameter like: boost::bind( &myclass::mymethod, this, p_env, p_com) The signatur of the method is: void myclass::mymethod( const mpi::environment&, const mpi::communicator& ) and mpi ist the boost::mpi namespace Thanks Phil
28 Nov
28 Nov
8:41 a.m.
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
5096
Age (days ago)
5097
Last active (days ago)
2 comments
2 participants
participants (2)
-
Jeff Flinn
-
Kraus Philipp