Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-10-27 12:12:40


Brian McNamara <lorgon_at_[hidden]> writes:

> Actually I'd prefer
>
> is_proper_subtype< D, B >
> is_subtype< D, B >

I'd love is_subtype if it weren't for the fact that my idea of
subtyping has considerably broadened since I started doing generic
programming. There were also people who like is_base_and_derived
because it made the order of the arguments perfectly clear. If you
imagine currying is_subtype<D><B> it almost seems like it should tell
you whether B is a subtype of D.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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