Hi,
Is it possible to specialize templated function with templated templates?
I'm not sure if it's possible, and if yes what is the proper syntax.
I would imagine it something like this :
1 2 3 4 5 6 7 8 9 10 11 12 13
|
template<class T>
class bar {};
template<class T>
class baz {};
template<class C1, class C2>
C1 foo( const C2& );
template<>
template<class T>
bar<T> foo< bar<T>, baz<T> >( const baz<T>& ) {
//....
}
| |
Last edited on
yes it is, but remember to put in a function name.
can you overload return types?
No, you can't overload on return types.