default arguments are only permitted for function parameters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx>
aycan Digitalsysteme GmbH


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux