Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-09-02 16:01:53


"Peter Dimov" <pdimov_at_[hidden]> writes:

> Douglas Paul Gregor wrote:
>
> [...]
>
>>> struct A {
>>> double d;
>>> int i;
>>> };
>
> [...]
>
>> Are there any other crazy rules like this that you know of? We could
>> just add "struct A" from above to the list of types, or if there is a
>> CodeWarrior-specific extension (e.g., something like "#pragma pack" or
>> "atttribute(aligned...)") we could start using compiler-specific
>> extensions to do this, which wouldn't be a bad thing to do anyway.
>
> Maybe adding struct { double x; } would be enough?

I think it would be safer to add struct { double T; } for each T in
the list of types, just in case.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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