inline const floats are a gcc extension. It is possible to do it in a standard way in C++11 using constexpr, but then gcc will reject the previously accepted nonstandard syntax.