在程序运行是发现卡住,在控制台打印如下提示:
dynamic_cast error 2: One or more of the following type_info's has hidden visibility or is defined in more than one translation unit. They should all have public visibility. N10__cxxabiv116__shim_type_infoE, id, N10__cxxabiv117__pbase_type_infoE.
后发现是Sreing类型属性无初始值,赋值给了字典的Value. 给属性赋值后就可以了.