This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
default arguments are only permitted for function parameters
- From: Radoslaw Garbacz <rgarbacz at aycan dot de>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 16 Jan 2007 11:22:44 +0100
- Subject: default arguments are only permitted for function parameters
- Reply-to: rgarbacz at aycan dot de
Hello,
I got a compilation error as in the subject when compiling the code:
void (ClassT::*m_pfSet)(T , size_t = 0);
I found many references to this problem on the Internet and GCC web
pages, but I have not found a clear answer whether it is a GCC bug or a
desired change to comply the C++ standard.
From what I found it seems that there had been a desired change in
version 3.4 which later was reported as a bug.
I would be very obliged if someone could clerify the problem, whether I
shell change the code or wait for a patch.
Thanks in advance.
--
Radoslaw Garbacz <rgarbacz@aycan.de>
aycan Digitalsysteme GmbH