Boost logo

Boost :

From: Daniel Frey (daniel.frey_at_[hidden])
Date: 2001-11-26 09:33:07


David Abrahams wrote:
>
> ----- Original Message -----
> From: "Vesa Karvonen" <vesa.karvonen_at_[hidden]>
> To: <boost_at_[hidden]>
> Sent: Monday, November 26, 2001 4:38 AM
> Subject: Re: [boost] Re: A couple of issues in submitting typelists to boost
>
> > From: "David Abrahams" <david.abrahams_at_[hidden]>
> > [...]
> > > Ah, OK; now I see the logic. We really need compile-time infix
> operators,
> > > don't we? ;-)
> > >
> > > <X is_derived_from Y>::value
> >
> > Try this:
> >
> > Is<X>::Derived_From<Y>::value
> >
> > -Vesa
>
> I thought of that, but shied away because of this:
>
> ...
> static const bool inheritance =
> Is<X>::template Derived_From<Y>::value
> ^^^^^^^^

How about:

  test< D, is_derived_by< B > >::value

(The names are not important, the pattern is)

Regards, Daniel

--
Daniel Frey
aixigo AG - financial training, research and technology
Schloß-Rahe-Straße 15, 52072 Aachen, Germany
fon: +49 (0)241 936737-42, fax: +49 (0)241 936737-99
eMail: daniel.frey_at_[hidden], web: http://www.aixigo.de

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