|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-01-12 07:16:30
From: "John Maddock" <John_Maddock_at_[hidden]>
> >Here's another one we need:
> >
> > has_common_base_class<T,U>::value
>
> And the implementation is?
I don't think there is one. ;-)
I have an implementation of common_base_of<T, U>::type that requires type
registration, though. It uses functions of the form
T helper(T *, T *);
and then returns typeof(helper(T *, U *)) (using Bill Gibbons' typeof
emulation.)
-- Peter Dimov Multi Media Ltd.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk