Re: enums that are really just sets of constants
- From: Jonathan Wakely <gtkmm kayari org>
- To: Kjell Ahlstedt <kjellahlstedt gmail com>
- Cc: Murray Cumming <murrayc murrayc com>, gtkmm-list <gtkmm-list gnome org>
- Subject: Re: enums that are really just sets of constants
- Date: Wed, 19 Apr 2017 12:06:19 +0100
On 19 April 2017 at 11:51, Kjell Ahlstedt wrote:
Den 2017-04-19 kl. 12:24, skrev Murray Cumming:
On Wed, 2017-04-19 at 10:30 +0100, Jonathan Wakely wrote:
You can also use a namespace to give them their own scope, which has
less overhead than a class type (no RTTI for the class, no way for
users to create instances of the class type, or pointers to it, which
would have no purpose if it's just being used to create a new scope
for the enumerators).
Good point.
I'm leaning towards this at the moment.
Is it possible to define a namespace within a class?
No.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]