Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ Template classes

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?

Name: Anonymous 2012-12-09 15:36

>>6
I think you mean Java

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List