Boost logo

Boost Users :

Subject: Re: [Boost-users] Default argument values with boost::function
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2009-04-30 14:26:58


Artyom <sneg.vx <at> googlemail.com> writes:

>
> Hi,
>
> Is there any way to set default argument values with Boost::Function? On
> VS2008 SP1 I tried:
>
> boost::function< void( unsigned i = 1 ) > increment;

I do not think you can do it, but you can bind the value when you create the
instance.

Gennadiy


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