c++ typeid 注意事项
摘要:
typeid 对于不含有虚函数的类对象,无法识别 对于含有虚函数的对象能够识别 无法准确识别任何指针对象 #include "stdafx.h" #include <iostream> #include <string> using namespace std; class BaseNoVirtua 阅读全文
posted @ 2021-06-24 16:36 norsd 阅读(14) 评论(0) 推荐(0)
浙公网安备 33010602011771号