Text archives Help
- From: Andrew Kensler <aek@cs.utah.edu>
- To: manta@sci.utah.edu
- Subject: Re: [MANTA] unnamed in PointVector
- Date: Tue, 24 May 2005 15:56:25 -0600 (MDT)
Yes, I'd taken the compile-time assert array bit from Alexandrescu's
Modern C++. The typedef was an improvement that I came up with to avoid
warnings in my 6620 ray tracer. My line there looks like:
typedef char annonymous[ ( sizeof( scratchpad_type ) <= sizeof( scratchpad )
) ? 1 : 0 ];
- Andrew
On Tue, 24 May 2005, James Bigler wrote:
>
That did the trick. And just to make sure, I reversed the order of the
>
returns to purposefully break and it did. This will also help the compiler
>
not be stupid about make stack room (in case it decides it wants to).
>
>
Checkin coming soon.
>
>
James
>
>
Christiaan Paul Gribble wrote:
>
> Placing the "typedef" keyword in front of the declaration may make those
>
> warnings go away, but still allow the compiler to bail if Dim != 3.
>
>
>
> C
Archive powered by MHonArc 2.6.16.