Problem using boost::bind

Hi, Im trying to use boost::bind with 2 parameters on a member function, bind(&Foo::bar, this, _1, _1)); but somehow this fails compilation. Whats the proper syntaxis? Greets, Iskandar

Thanks, that did the trick :-) -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Igor R Sent: Wednesday, April 14, 2010 17:47 To: boost-users@lists.boost.org Subject: Re: [Boost-users] Problem using boost::bind
Im trying to use boost::bind with 2 parameters on a member function,
bind(&Foo::bar, this, _1, _1));
bind(&Foo::bar, this, _1, _2)); _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

On Apr 14, 2010, at 8:39 AM, Iskandar Prins wrote:
Hi,
Im trying to use boost::bind with 2 parameters on a member function, bind(&Foo::bar, this, _1, _1));
but somehow this fails compilation. Whats the proper syntaxis?
Well, for starters, you've got an extra ')' there. -- Marshall
participants (3)
-
Igor R
-
Iskandar Prins
-
Marshall Clow