#1095·oatpp

在 'Environment::getComponent' 中出现类型混淆

作者: 2rr0r4o3创建于 2026年8月24日更新于 2026年8月24日

`Environment::getComponent` (`src/oatpp/Environment.cpp:364` and the qualified overload at `:378`) looks up the key and returns a `void*`. The registry stores `void*` (`Environment.hpp:301`, `:313-354`). No type identity accompanies the value, so the mangled name string is the only thing standing between a component and a wrong cast.