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 16:24

>>7
>Java
>object oriented
LELLLLELLLELLLLELLLEllellellelllelllellell1__1__1__1___1__1+__+__+____++__+__+_.,,.,,,,.,,....,,,..,,....,,,,,,,..,..,.,.,....,,,..,,,.,,,, (   ( (   ((( ( |\|\\\\|\\|\\||||||\\\=-=-====----=---------=====--=----===---%%$$$%%$$$$$$%%%%$%$%$%$$$$$$^~~^~^~~~~^^^^~^~^~~^^~~#&#&&#&&####&#&###&#&#&#&#&&#&&&&&&#&&#&&&&&&&#mnmmmnnnnnmnmnmmmnnmnmnmnmmnmnmnpppppppqqqqpqppqppqppppqqqqppqppqpppqppqbbbbbdbbdbbdbbbbbbbbdbbdbdbbdbbdbbdbbdbbbbbbbbdddddbbbdbbdbbdbbbbbbhyhhyhhhhhhhyhhyyyyhhyhhyhhyhhyhhyhhyhyhyhhyhyhhyhhhhhhhhyyyQOQOOQOOQOOOOOQQQQOOOOOQOOQOQQNZNZNNZNNNNZNZZZZNZNNZNZZZZNZNNZNNZNNZNNZNNNNZNNZNNNNZNN<V<<V<<V<<VVV<V<<V<<V<<V<<V<<V<<V<<V<<<<<<<V<V<<<<VVVV<<VLLL7LLLL7777LL7L7777LLLL7777L777LLLL77777L8B8888BBBBB8B8BBB888888BBBBB96999999666666699996996969999669996999995252525222222525525525525522222222225555555553mm3mm3mm3mm3mmmmm3mm3mmmmm3mm3mmmmmnuunnnnnnunnnnunnunnunnunnunnunnuuunnunnul_lll_l_____lllll____gaggaggaggaaaaagaggagggaaggagggggx+++xxx+xxxx+xx+xxxx+++++xx++x

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