Is this a compiler error or a runtime error?
EDIT: Hmm.. actually it only works in VS -- gcc seems to give the linker error. Nevermind!
After filling in some unknown types... the code compiles just fine for me. Your problem must be in code you are not showing us.
EDIT2: Okay so my local version of GCC and VS it works... but when I submit to IDEone it fails. What compiler are you using?
Last edited on
Ah... it was the pure virtual thing.