Article View: comp.std.c++
Article #2316Re: Can I declare private constants?
From: David Vandevoorde
Date: Thu, 26 Oct 1995 19:19
Date: Thu, 26 Oct 1995 19:19
17 lines
1056 bytes
1056 bytes
>>>>> "SC" == Steve Clamage <clamage@eng.sun.com> writes: [...] SC> You can use the enum hack, but it isn't necessary. You can now (if SC> your local compiler supports the change) declare a static member of SC> any integral type as a manifest constant: [...] Would you happen to know why it must be an ``integral type''? I imagine uses for floating-point constants... Daveed --- [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu. Contact address: std-c++-request@ncar.ucar.edu. The moderation policy is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID:
<VANDEVOD.95Oct26140846@avs.cs.rpi.edu>Path:
arc1-ca.pugleaf.net!128.32.155.1!mattReferences:
<46ldi4$2cn@meg.tesser.com> <46lll7$826@engnews2.Eng.Sun.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!128.32.155.1!matt From: vandevod@cs.rpi.edu (David Vandevoorde) Newsgroups: comp.std.c++ Subject: Re: Can I declare private constants? Date: 26 Oct 1995 19:19:55 GMT Organization: RPI Computer Science Approved: matt@physics2.Berkeley.EDU (Matt Austern) Message-ID: <VANDEVOD.95Oct26140846@avs.cs.rpi.edu> References: <46ldi4$2cn@meg.tesser.com> <46lll7$826@engnews2.Eng.Sun.COM> NNTP-Posting-Host: physics2.berkeley.edu