|
template <class Type>
class Bar
{
template <class T> friend void Foo1 (const T&);
};
How can Foo1 be defined outside the template class Bar?
I wrote it like this
template <class T> void Foo1 (const T&) {}
But when compiling, it says error C2668: "Foo1": The call to overloaded function is ambiguous
May be the one declared in the template class, or the one defined outside
What should I do? |
|