|
Boost Users : |
From: Nat Goodspeed (nat_at_[hidden])
Date: 2008-03-18 10:34:49
Erik wrote:
> John Maddock skrev:
>> Erik wrote:
>>
>>> We have this really neat and simple macro in our project:
>>> #define compile_assert(x) typedef bool COMPILE_ASSERT[(x) ? 1 : -1]
>>>
>>> Although it does what we need and serves us well, I tried to replace
>>> it with BOOST_STATIC_ASSERT. Unfortunately this resulted in a lot of
>>> ugly warnings throughout the compile:
>>> warning: use of old-style cast
>>>
>> Which compiler is this?
>>
> g++ (with the parameter -Wold-style-cast)
I bet he's going to ask you which version of g++ you're using. Behavior
can vary widely across versions.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net