错误原因 想声明一个匿名类,却没有一个类体结构。比如如果有下面的代码,就会出现这样的错误 #define optional #include <iostream> #include <map> class optional; int main(int argc, char *argv[])