|
Boost : |
From: Daniel Frey (daniel.frey_at_[hidden])
Date: 2003-12-12 04:36:08
David Abrahams wrote:
> The is_compound docs say:
>
> " ::boost::is_compound<T>::value Evaluates to true only if T is a
> compound type. That is an array, function, pointer, reference,
> enumerator, union, class or member function type."
> ^^^^^^^^^^^^^^^^^^^^
> What is that? IIUC, you can only form pointers to member functions.
> Am I missing something?
>
> Wouldn't it be simpler to say:
>
> "not a void, integral, floating, or enum type"
>
> ??
An enum type is a compound type. I think it would be best to say
"not a fundamental type"
as this is what the implementation looks like (see also 3.9/1). I think
the remark about "requires partial specialization" in the docs for
is_compound might also be wrong now and should be fixed, too. John?
Regards, Daniel
-- Daniel Frey aixigo AG - financial solutions & 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