This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Const in default function arguments?
- From: John Love-Jensen <eljay at adobe dot com>
- To: Eric Lemings <elemings at lemings dot com>, <eric at lemings dot com>, <gcc-help at gcc dot gnu dot org>
- Date: Fri, 04 Apr 2003 13:58:28 -0600
- Subject: Re: Const in default function arguments?
Hi Eric,
> Can somebody not point to the standard that says you can't use a default
function argument for a non-const parameter?
I don't have the standard (ISO 14882) on hand.
However, if you have some confidence in Stroustrup's C++PL (3rd ed), you can
read 10.4.10 and 5.5 which states that doing so is illegal.
Sincerely,
--Eljay