sinojelly / mockcpp

Two C/C++ testing tools, mockcpp and testngpp.
Apache License 2.0
66 stars 39 forks source link

It can't support to mock a global template function. #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
template <typename T>
void foo(T &t);

void bar()
{
    MOCKABLE(foo);  // compile error

    struct A {}a;

    foo(a);
}

Original issue reported on code.google.com by han.bing...@gmail.com on 4 Jun 2010 at 5:25