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?
Show differencesHistory of post edits
#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?