I have the following template declaration:
template
void IterTable(int& rIdx,
std::vector
I wrote a "test harness" with a trivial struct containing your method declaration (and nothing else), and #included
and
, and invoked (and thus instantiated) the method with T
being int
, and it compiled just fine, both on Visual Studio 2008 Express on Windows Vista and with GCC 4.2.4 on Linux 2.6.
I suggest trying to build only a minimal amount of code with the "problem" in it, and if that actually does build, add back in the rest of your project until it breaks, then you'll know what caused it.