static const double pi = 3.1415;

Joe Buck jbuck@synopsys.com
Tue Feb 18 18:10:00 GMT 2003


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.



More information about the Gcc mailing list