The following won't compile (missing a cast)
|
The following, compiles but has a run time error:
|
|
|
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Shane PoppletonPosted Jun 10, 2009, 11:45 PM
I have a workaround, i will post here in case anyone has the same problem.
I added a second type parameter to the class and pass in the derived type so that my CreateMe() method knows what type to return.