|
Boost : |
From: Daniel Frey (d.frey_at_[hidden])
Date: 2003-02-15 08:56:28
On Sat, 15 Feb 2003 12:45:10 +0100, John Maddock wrote:
>> After thinking about it longer, I still think that there is a problem.
>> The code seems "twisted" to me. Let me try to explain it, I start by
>> some observations (all for the case of
>> BOOST_TT_HAS_CONFORMING_IS_CLASS_IMPLEMENTATION not being set):
>>
>> is_scalar is based on 3.9/10, which says that enums are scalars.
>> Currently, is_scalar doesn't detect enums.
>
> Oh yes it does :-)
OK, so it's just the documentation that's lying. It says: "Evaluates to
true only if T is cv-qualified scalar type. That is an arithmetic, a
pointer or a pointer to member type." Great.
>> is_class needs is_scalar
>
> Oh no it doesn't :-)
Than I'm stupid. I give up.
Still not smiling, Daniel
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk