|
Boost : |
From: John Maddock (jm_at_[hidden])
Date: 2003-01-29 06:39:55
> I've always felt that is_base_and_derived is a funny name. is_base_of<B,
D>
> and is_derived_from<D, B> both look pronounceable(sp?) to me: "is B a base
> of D? is D derived from B?"
>
> While we're at it, is the final verdict that is_base_and_derived<void, X>
> should be false? What about is_base_and_derived<void, void>?
The LWG suggested (and I agreed with) a change to "is_base".
And yes, if one or the other template arguments are non-class types, then
the answer is false (I may need to double check the current implementation
on this).
John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/index.htm
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk