can i keep the reference to a type_info class

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi,

with RTTI turned on... can i keep the reference to the type_info so that i can pass it around? i want to pass something to a function that will pick out a specific type of object from a pool of objects with the same base class.

thanks
 
Yes, you can. All type_info objects are static and exists for the life of
the program.
-cd
 
Back
Top