loader
pttman

pttman Muster

屬於你的大爆卦
pttman

pttman Muster

屬於你的大爆卦
pttman

pttman Muster

屬於你的大爆卦
  • Ptt 大爆卦
  • Dynamic_cast
  • 離開本站
你即將離開本站

並前往https://www.zhihu.com/question/22445339

为什么说不要使用dynamic_cast,需要运行时确定类型信息 - 知乎

没有说一定不能用,而是需要在恰当的场合使用恰当的特性。比如:能在编译时解决掉的问题没必要留到运行时、能用多态搞定的事情也没必要使用dynamic_cast 和typeid 等。

確定! 回上一頁

查詢 「Dynamic_cast」的人也找了:

  1. dynamic_cast c++用法
  2. Static_cast
  3. static_cast是什麼
  4. Reinterpret_cast
  5. C++ dynamic_cast static_cast 差異
  6. Static_cast, dynamic_cast
  7. Dynamic_cast void
  8. c++ dynamic_caststatic_cast差異

關於我們

pttman

pttman Muster

屬於你的大爆卦

聯終我們

聯盟網站

熱搜事件簿