Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2003-12-03 16:15:18


> Test suite "Type Traits" failed with:
> 35 assertions out of 36 passed
> 1 assertion out of 36 failed
>
> Test case "type_with_alignment" failed with:
> 35 assertions out of 36 passed
> 1 assertion out of 36 failed
> ====== END OUTPUT ======
>
> My question: what gives us the right to expect that is_pod will
> return true in this case, since is_pod only works with compiler
> support?
>
> Thanks,

Darn, at the time I added that check, it was true I think that
type_with_alignment always returned a builtin type, so is_pod did detect it
OK, if that's not the case, shouldn't we specialise is_pod for whatever
type_with_alignment returns, since it is a postcondition that it returns a
POD type, or am I being needlessly picky?

John.


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