• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
in-class initialization of fundamental types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

in-class initialization of fundamental types


  • Subject: in-class initialization of fundamental types
  • From: Markian Hlynka <email@hidden>
  • Date: Fri, 23 Sep 2005 16:23:41 -0600

Isn't the following suppposed to be legal in c++?

class foo
{
    public:
        static const int foo_max_size = 100;

    private:
        char fooname[foo_max_size];
};

xcode (and thus gcc4) doesn't seem to allow it, but I was certain I'd read somewhere that this was now legal??

Markian

----
Quantum mechanics -- the dreams that stuff is made of.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: in-class initialization of fundamental types
      • From: Andreas Grosam <email@hidden>
    • Re: in-class initialization of fundamental types
      • From: Clark Cox <email@hidden>
    • Re: in-class initialization of fundamental types
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: auto syntax bugs
  • Next by Date: Re: in-class initialization of fundamental types
  • Previous by thread: Re: auto syntax bugs
  • Next by thread: Re: in-class initialization of fundamental types
  • Index(es):
    • Date
    • Thread