Name: Anonymous 2012-12-09 12:38
So I want to use dynamic_cast in some situations (when template<T> is an inherited class) but not if template is int, char, bool, etc.. but it doesn't compile if yjose instances even exist.
I can't figure out how to make a general rule for that. I was hoping you can HIDE functions depending on template type. So if you initialise the class an MyClass<int> you see different things to MyClass<OtherClass>
Is that possible?
I can't figure out how to make a general rule for that. I was hoping you can HIDE functions depending on template type. So if you initialise the class an MyClass<int> you see different things to MyClass<OtherClass>
Is that possible?