
11 May
2005
11 May
'05
6:24 p.m.
Gennadiy Rozental wrote:
struct nil{};
template<T, Rest=nil> class A : public Rest { public: void foo( T ); using Rest::foo; };
Let say we have instantiation A<int,A<float,A<char> > >. Without using, void foo( int ) will hide all other overloads. I could add foo to nil. But I do not think it's an issue here.
Gennadiy
Ok, I can now see what the problem is. I certainly haven't got any ideas about how to solve this. Russell