Boost logo

Boost Users :

From: Sean Rhea (srhea_at_[hidden])
Date: 2006-02-14 17:20:56


On Feb 13, 2006, at 6:28 PM, Peter Dimov wrote:
> Unlike some other libraries, bind does not automatically append
> incoming
> arguments to the call; if you say bind( f, 5 ), it calls f( 5 ),
> regardless
> of how many input arguments are supplied. If you want the first input
> argument to be passed to MyClass::foo, you need to mention it
> explicitly,
> using _1:
>
> bind( &MyClass::foo, this, _1 )

Ah, right. Thanks,
Sean

-- 
          [P]aramount among the responsibilities of a free press is
        the duty to prevent any part of the government from deceiving
         the people and sending them off to distant lands to die of
                 foreign fevers and foreign shot and shell.
                  -- U.S. Supreme Court Justice Hugo Black



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