[LC++]Default Arguments

Jack Lloyd lloyd at acm.jhu.edu
Sat May 11 02:27:05 UTC 2002


On Fri, 10 May 2002, Shaul Karl wrote:

Ah, that's what I was looking for! Thanks. -Jack

> According to the `C++ Primer', 3rd edition, page 353:
>
>       A default argument does not have to be a constant expression. Any
>     expression can be used.
>
>     [skipping an example]
>
>       When the default argument is an expression, the expression is
> evaluated
>     at the time the function is called
>
>
>
>





More information about the tuxCPProgramming mailing list