D
Domenico Andreoli
hello,
i have the following problem: taking the pointer of a particular
instantiation of template member function A::f. i have no idea of how
achieve in the intent.
any halp or hint would be very appreciated.
cheers
domenico
struct A
{
template <typename T>
void f(const T& t) { ... }
};
void g(void (A::* f)(const int&))
{
...
}
int main()
{
void (A::* x)(const int&) = &(A::template f<int>);
g(x);
...
}
-----[ Domenico Andreoli, aka cavok
--[ http://filibusta.crema.unimi.it/~cavok/gpgkey.asc
---[ 3A0F 2F80 F79C 678A 8936 4FEE 0677 9033 A20E BC50
i have the following problem: taking the pointer of a particular
instantiation of template member function A::f. i have no idea of how
achieve in the intent.
any halp or hint would be very appreciated.
cheers
domenico
struct A
{
template <typename T>
void f(const T& t) { ... }
};
void g(void (A::* f)(const int&))
{
...
}
int main()
{
void (A::* x)(const int&) = &(A::template f<int>);
g(x);
...
}
-----[ Domenico Andreoli, aka cavok
--[ http://filibusta.crema.unimi.it/~cavok/gpgkey.asc
---[ 3A0F 2F80 F79C 678A 8936 4FEE 0677 9033 A20E BC50