?
=?iso-8859-1?q?Jan_Sch=E4fer?=
Hi all,
is there a simple way to find out during runtime if a class of some type
is polymorphic? I am writing some serialization functions and need to
handle polymorphic and non-polymorphic classes differently. I am sure
there are hundreds of workarounds for this, but I am interested if this
can be done by some clever function with the help of casting and/or rtti
which determines if a class is polymorphic or not.
I found a is_polymorphic template in the boost libraries but didn't get
the trick yet!?
Any ideas?
Greetings from Ulm
Jan
is there a simple way to find out during runtime if a class of some type
is polymorphic? I am writing some serialization functions and need to
handle polymorphic and non-polymorphic classes differently. I am sure
there are hundreds of workarounds for this, but I am interested if this
can be done by some clever function with the help of casting and/or rtti
which determines if a class is polymorphic or not.
I found a is_polymorphic template in the boost libraries but didn't get
the trick yet!?
Any ideas?
Greetings from Ulm
Jan