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]

default arguments are only permitted for function parameters


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


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