Boost logo

Boost Users :

Subject: Re: [Boost-users] Default argument values with boost::function
From: Noah Roberts (roberts.noah_at_[hidden])
Date: 2009-04-30 13:37:51


Artyom wrote:
> Hi,
>
> Is there any way to set default argument values with Boost::Function?

In the standard way you would with the same function that doesn't have
default arguments:

boost::function<void()> f = boost::bind(&increment, 1);


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