Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #14724

Re: Declaring a static const member of a class.

From Luca Cerone <luca.cerone@gmail.com>
Newsgroups comp.lang.c++
Subject Re: Declaring a static const member of a class.
Date 2012-03-03 10:33 -0800
Organization http://groups.google.com
Message-ID <18041019.646.1330799599487.JavaMail.geo-discussion-forums@vbux23> (permalink)
References <2939750.182.1330705614328.JavaMail.geo-discussion-forums@vbva11>

Show all headers | View raw


Thanks a lot to all of you.
I've received many inputs and I hope I'll be able to make
things work soon.

Creating the a public accessor, and a private member to set the
value seems a good idea.

Thanks a lot for the explanations,
the examples and the different solutions proposed!

Cheers, Luca

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Declaring a static const member of a class. Luca Cerone <luca.cerone@gmail.com> - 2012-03-02 08:26 -0800
  Re: Declaring a static const member of a class. Ed Anson <EdAnson@comcast.net> - 2012-03-02 18:49 -0500
    Re: Declaring a static const member of a class. Leigh Johnston <leigh@i42.co.uk> - 2012-03-03 11:02 +0000
    Re: Declaring a static const member of a class. Luca Cerone <luca.cerone@gmail.com> - 2012-03-03 04:35 -0800
      Re: Declaring a static const member of a class. Paavo Helde <myfirstname@osa.pri.ee> - 2012-03-03 07:21 -0600
      Re: Declaring a static const member of a class. Ed Anson <EdAnson@comcast.net> - 2012-03-03 13:04 -0500
  Re: Declaring a static const member of a class. Saeed Amrollahi <amrollahi.saeed@gmail.com> - 2012-03-03 03:29 -0800
  Re: Declaring a static const member of a class. Luca Cerone <luca.cerone@gmail.com> - 2012-03-03 10:33 -0800
    Re: Declaring a static const member of a class. Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2012-03-04 01:40 -0500

csiph-web