I have a piece of code that pretty much boils down to:
template<class T> struct MyStruct;
Now somewhere in my code, I get an instance of MyStruct<T>
which turns out to be undefined (no C ++ 0x / 011, no Boost ... nothing unusual, just C ++ 03)
error C2027: use of undefined type 'MyStruct<T>'
The problem is that I have no idea where , because the code that executes the instance is itself a template and is called from many places with different arguments.
Is there a way to somehow figure out what T
at compile time to better understand error messages?
(Sorry, I forgot to mention: Visual Studio 2008.)
source share