How can I explicitely instantiate method f
of the following snippet?
template <int x> class A
{
public:
template <typename T> inline void f(T y) { y = x; }
};
Use this syntax:
template void A<0>::f<int>(int);
Obviously substitute 0
and int
for what you want to instantiate with.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments