To suppress this behavior, you can use the -fno-for-scope flag during compilation.
要想禁止这个行为,您可以在编译期间使用- fno - for - scope标志。
2
fno-rtti -qnortti Disables generation of runtime type -qrtti identification (RTTI) for exception handling and for use by typeid and dynamic_cast operators. On XL C/C++, the default is -qnortti.