From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-01-17 08:30:39


From: "David Abrahams" <david.abrahams_at_[hidden]>
> Cute, but I think only a class type can be a base.
>
> Can you write:
>
> struct B : void {};

No, I can't, but the compiler does it implicitly all the time. ;-)

It's a matter of interpretation. D&E says that the implicit B * -> void *
conversion supports the notion of void being an implicit public base of
everything.

In most cases I've encountered B is-a void.

--
Peter Dimov
Multi Media Ltd.