Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3042

Pointer to a template function ?

$
0
0
Is it possible to create a pointer to a template function - e.g. if I had a std::list of ints and I wanted a pointer to its "unique" member :-

Code:

void (*pfn)(void) = &std::list<int>::unique;
The above code gives me C2275 but I'm just wondering if there's a way to do it successfully.

Viewing all articles
Browse latest Browse all 3042

Trending Articles