Skip to content

Instantly share code, notes, and snippets.

@jweinberg
Created October 12, 2011 04:41
Show Gist options
  • Save jweinberg/1280297 to your computer and use it in GitHub Desktop.
Save jweinberg/1280297 to your computer and use it in GitHub Desktop.
class ClassA
{
public:
template <typename T>
int test(int a, int b)
{
return a + b;
}
};
#include "ClassA.h"
class ClassB
{
void SomeFun()
{
ClassA a;
struct TestType
{
int a;
};
a.test<TestType>(1,2);
}
};
No matching function for call to 'ClassA::test(int, int)'
#include "ClassB.h"
int main()
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment