c++ - Which compiler supported with function pointer with default arguments? -
which c++ compiler can compile next code?
void (*g2api_copyghoul2instance)(cghoul2info_v &ghoul2from, cghoul2info_v &ghoul2to, int modelindex = -1); //<--- that's it!
it not code , have lot of such things. know standart didn't allow such declaration, this comment tells me compilers allow it.
p.s. code star wars jedi knight: jedi academy source.
can't suggest compiler though i've found useful link lists out fixes required code compile gcc compiler.
http://www.lucasforums.com/showthread.php?t=203922
hope useful you.
Comments
Post a Comment