This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: static const double pi = 3.1415;
On Tue, Feb 18, 2003 at 08:05:24AM -0800, Mark Mitchell wrote:
> I assume that by "it" you mean initializing static floating-point data
> members in-class.
>
> I still think that in some sense there's nothing to deprecate; this was a
> very unofficial extension.
Speaking as someone who used g++ since 1990: initialization of const members
in-class was always there. ISO C++ picked up the ability to initialize
static integral members in-class from g++, in ARM C++ you had to use an
enum.
Given this very long history I think that it needs to be deprecated
and announced.