int fun(int a = 1, b = 2, c = 3) { return a + b + c; }
And while I think about it why not allow the following to make b
and c int rather than have to redeclare the type each time?
- Allow empty field function arguments for default? ixid
- Re: Allow empty field function arguments for default? ixid
- Re: Allow empty field function arguments for default? Jacob Carlborg
- Re: Allow empty field function arguments for defau... Jacob Carlborg
- Re: Allow empty field function arguments for defau... Jakob Ovrum
- Re: Allow empty field function arguments for d... Christophe
- Re: Allow empty field function arguments f... Jacob Carlborg
- Re: Allow empty field function argume... Jakob Ovrum
- Re: Allow empty field function ar... Christophe
- Re: Allow empty field functio... Jacob Carlborg
- Re: Allow empty field function arguments f... Jakob Ovrum
- Re: Allow empty field function arguments for default? bearophile