I have a string class that, unsurprisingly, uses a different implementation depending on whether or not UNICODE is enabled.
#ifdef UNICODE
typedef StringUTF16 StringT;
#else
typedef StringUTF8 StringT;
#endif
This works nicely but I currently have a problem where I need to forward declare the StringT typedef. How can I do this?
I can't do typedef StringT;
so it makes forward declaration tricky. Is it possible to do a forward declare of this typedef'd type without having to past the code above into the top of the header file?