 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Tooc Guest
|
Posted: Mon Jun 12, 2006 9:10 am Post subject: typeid and template class |
|
|
I have defined a class named Rectangle<typename T>.
How do I test for a Rectangle? I just want to know if an object is any type
of Rectangle.
My code compiles for typeid(Rectangle<>) only if I provide a default value
for the template argument - and this is not what I want!
tooc |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|