Typdef class question

The reason you need to use a typedef is because the compiler needs to know that the identifier tst_ptr refers to a data type (in your case, a class) in order to parse the statement in a single pass through the source code. Its called “forward” because the typedef is ahead of the actual definition. So where is your definition?

Dave Rich
Mentor Grpahics