
20 Oct
2011
20 Oct
'11
2:50 p.m.
On Thu, Oct 20, 2011 at 10:32 AM, nico <nicolas.guillot@gmail.com> wrote:
template <typename T> class S { public:
template <typename U> void f(U p, typename enable_if<is_same<T, U> >::type*dummy = 0)
First, why are you using enable_if here at all? Is there something wrong with: void f(T p )
Any explanation or "workaround" ?
You need using declarations: class A : public S<int>, public S<double> { public: using S<int>::f; using S<double>::f; }; -- -Matt Calabrese