$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Daniel Wallin (dalwan01_at_[hidden])
Date: 2006-03-27 13:56:55
Gennadiy Rozental wrote:
> Hi,
>
> Maybe somebody could point me into right direction. boost::bind allows to
> present function of arity N as function of arity M with M<N, by binding some
> particular arguments. I need reverse: I need to present function of arity N
> as function of arity M with M > N, by ignoring some arguments.
>
> What is recommended to be used?
boost::bind can be invoked with any arity and will ignore arguments that
are not used.
void f(int);
bind(&f, _1)(x,y,z,u); // invokes f(x)
-- Daniel Wallin