I'm aware, that up to date, "typedef templates" are not defined within
the C++ standard. The seemingly common workaround is this:
template <class T> struct MyTypeDef
{
/* ultimately I need something like this:
MyOtherClass<T> Type;
but let's keep it simple for the moment */
typedef short Type;
};
// I now can use this pseudo typedef template like this:
MyTypeDef<int>::Type foo;
// but this does not compile (MSVC):
template <class T> class MyClass {
MyTypeDef<T>::Type foo;
};
Is there a typo in my code, or is there some fundamental limitation that
prohibits the typedef template workaround in this situation?
-Sacha