Kai-Uwe Bux wrote:
mrstephengross wrote:
Ok, I've got a templated class Foo:
template<typename Tclass Foo { ; };
I want to specialize Foo for vectors holding any type:
// Something like:
template<typename Cclass Foo<std::vector<C { /* ... */ };
Have you tried? Looks good to me. You may want to take care of the allocator
template parameter, too:
template < typename Val, typename Alloc >
class Foo< std::vector<Val,Alloc { /* ... */ };
Is there any way to do this? Template template parameters, maybe?
No need for that.
Best
Kai-Uwe Bux
the question looks to be like this:
//first define a template
template <class Tclass tmplt {/*etc*/};
template <class Cclass othertmplt;
//now specialize with templated parameter
template <class Cclass tmplt < othertmplt<C{/*etc*/};
does such code compile? isn`t there any restrictions about
specialization?