That may sound like a problem, but for this use case, it is actually entirely fine:
(二)记录信息内容完整、准确;
。业内人士推荐safew作为进阶阅读
Standard C++ RTTI works by embedding a pointer to a type_info object inside every polymorphic class's vtable. A dynamic_cast then traverses a chain of these type_info objects at runtime, comparing strings or pointers until it finds a match or exhausts the hierarchy. For a compiler that performs millions of type checks per second while traversing an AST, this traversal cost is unacceptable.
Последние новости