Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

#ActualSilgen

Posted 04 October 2012 - 03:55 PM

Thanks, that is working nicely.

Out of curiosity, more than anything else, is there a way of designing my class heirachy so that the function can return any derived class pointer, and not slice it?

#2Silgen

Posted 04 October 2012 - 03:43 PM

Thanks! - That appears to work (VS isn't complaining.) - So even though the function returns the type cEntity*, the fact that I casted it to the appropriate type will mean that the object was not in fact sliced?

#1Silgen

Posted 04 October 2012 - 03:43 PM

That appears to work (VS isn't complaining.) - So even though the function returns the type cEntity*, the fact that I casted it to the appropriate type will mean that the object was not in fact sliced?

PARTNERS