Out-of-class-template member template specialization syntax

B

BigMan

How do I specialize a member template of a class template out of the
definition of the class template.
 
D

davi.reis

BigMan said:
How do I specialize a member template of a class template out of the
definition of the class template.

You can't. You need to specialize the whole stuff. Like

template <> template <>
void X<int>::f<int>() {}

I am not sure if even that can be done. Just do a search in the
archives and you will see a lot of answers.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top