C++相談室 part85
■ このスレッドは過去ログ倉庫に格納されています
0632デフォルトの名無しさん
2010/10/28(木) 01:52:37virtual な関数を持つクラス型以外については、そもそも RTTI に基づく挙動は
必要とされず、すべて静的な型情報で処理される。なので、何の工夫も要らない。
5.2.8 p3 より
> When typeid is applied to an expression other than an lvalue of a polymorphic
> class type, the result refers to a type_info object representing the static type of
> the expression.
■ このスレッドは過去ログ倉庫に格納されています