Boost logo

Boost :

From: Russell Hind (rh_gmane_at_[hidden])
Date: 2005-05-11 13:24:32


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk