J
Joseph Turian
Hi,
What is the correct syntax to get the bar<T>::f<int, unsigned>()
function to compile in the following fragment?
Thanks,
Joseph
class foo {
template<typename A, typename B> void f();
};
template<typename T>
class bar {
template<typename A, typename B> void f();
};
template<typename A, typename B>
void foo::f() { }
template<>
void foo::f<int, unsigned>() { }
template <typename T>
template<typename A, typename B>
void bar<T>::f() { }
template <typename T>
template<>
void bar<T>::f<int, unsigned>() { }
What is the correct syntax to get the bar<T>::f<int, unsigned>()
function to compile in the following fragment?
Thanks,
Joseph
class foo {
template<typename A, typename B> void f();
};
template<typename T>
class bar {
template<typename A, typename B> void f();
};
template<typename A, typename B>
void foo::f() { }
template<>
void foo::f<int, unsigned>() { }
template <typename T>
template<typename A, typename B>
void bar<T>::f() { }
template <typename T>
template<>
void bar<T>::f<int, unsigned>() { }