On 2013-03-05 19:02, Bill Hoffman wrote:
> On 3/5/2013 3:28 PM, Gehua Yang wrote:
>> I am in favor of gradually dropping usage of GNU extension. C++11
>> standard provides a clean solution for constant value definition. Though
>> not many compilers are C++11 compliant at this moment, it is definitely
>> the future direction of VXL.
> How about we start with this gnu extension... :)
> Would anyone mind if I permanently disabled the
> VCL_STATIC_CONST_INIT_FLOAT_DECL option?
Won't this hurt optimization? Isn't the whole reason for this to exist
to allow the compiler to optimize math expressions involving these
Especially in C++11 mode, I would think a better solution would be to
correctly use 'constexpr', which would further allow using these in
(I should still have a patch for this floating around, but it is against
a very old version of VXL, and I am pretty sure the relevant code has
been rewritten since then. So... it won't apply, but might be useful for