idofront / PacketBuilder

MIT License
1 stars 0 forks source link

typeid 利用箇所の警告を解消 #32

Closed idofront closed 1 month ago

idofront commented 1 month ago

clang に切り替えたところ typeid 利用箇所で警告がでたため,これを解消する.

以下,抜粋

warning: expression with side effects will be evaluated despite being used as an operand to 'typeid' [-Wpotentially-evaluated-expression]
        auto type_name = typeid(*entityPtr).name();
                                ^
warning: expression with side effects will be evaluated despite being used as an operand to 'typeid' [-Wpotentially-evaluated-expression]
                         auto type_name = Utility::Demangle(typeid(*stackable).name());
                                                                   ^