When to use reinterpret_cast?

前端 未结 11 1385
我寻月下人不归
我寻月下人不归 2020-11-22 08:41

I am little confused with the applicability of reinterpret_cast vs static_cast. From what I have read the general rules are to use static cast when

11条回答
  •  再見小時候
    2020-11-22 09:24

    You could use reinterprete_cast to check inheritance at compile time.
    Look here: Using reinterpret_cast to check inheritance at compile time

提交回复
热议问题