Closed brjoha closed 5 years ago
Given these static template functions...
template void foo(int) {}
template<typename X, typename Y> void foo(int, int, int) {}
Is it possible to stub this? The examples show a class template function, but not a standalone template function.
Got it...
stub.set((void(*)(int))(&foo<X>), foo_stub_1); stub.set((void(*)(int, int, int))(&foo<X, Y), foo_stub_3);
Given these static template functions...
template
void foo(int) {}
template<typename X, typename Y> void foo(int, int, int) {}
Is it possible to stub this? The examples show a class template function, but not a standalone template function.