Boost logo

Boost :

From: Andrei Alexandrescu (andrewalex_at_[hidden])
Date: 2001-11-25 13:08:20


From: "John Maddock" <John_Maddock_at_[hidden]>
> Afterwards I realised that there are three possible names here:
>
> is_public_base<base,Derived>,
> is_superclass<base,derived>
> is_subclass<derived, base>
>
> Of course they all do the same thing, so we only need one of these - it
> depends on which way you look at it I guess - personally I prefer
> "is_public_base", as it's the easiest to understand what it does (I always
> get "superclass" and "subclass" mixed up, and I'm sure I'm not alone!)

That's exactly the argument that MC++D makes in favor of the name
SUPERSUBCLASS in favor of anything else. You can't get it wrong. By the way,
the recent typelist submission defines the super_subclass template.

Andrei


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