"Bobo" <pi***@correo.nu> wrote...
Hello all.
Can anybody explay WTH std::type_info has a virtual destructor?
AFAIK the constructor is private so you cannot inherit from it (who
would want, anyway?).
The implementation might need to. Besides, it helps a class to retain
RTTI if at least one member function is virtual. Another thing: the
private constructor prevents the users from constructing it, but some
mechanism has to exist, no?
Just a guess, of course. For better explanation ask in comp.std.c++.
V