Ave*_*ega 11 c++ compiler-construction standards function-pointers
哪个c ++编译器可以编译下一个代码?
void (*G2API_CopyGhoul2Instance)(CGhoul2Info_v &ghoul2From,
CGhoul2Info_v &ghoul2To,
int modelIndex = -1); //<--- That's it!
Run Code Online (Sandbox Code Playgroud)
这不是我的代码,我有很多这样的东西.我知道standart不允许这样的声明,但是这个评论告诉我一些编译器允许它.
PS此代码来自星球大战绝地武士:绝地学院的来源.
尽管我找到了一个有用的链接,其中列出了使用 GCC 编译器成功编译代码所需的修复程序,但无法建议编译器。
http://www.lucasforums.com/showthread.php?t=203922
希望它对您有用。