This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]