Date: Mon, 6 Apr 2020 14:29:45 +0200
I think the main purpose of a struct is not name scoping.
On Mon, Apr 6, 2020 at 2:23 PM Michał Policht via Std-Proposals <
std-proposals_at_[hidden]> wrote:
>
> > class X {
> > public:
> > struct ID {
> > enum {
> > NAME = 0x0,
> > SIZE = 0x2,
> > };
> > };
> >
>
> An what's wrong with the above? I'd rather go in that direction and try
> to unify all C++ constructs instead of introducing enum-specific syntax.
>
> Regards,
> Michał
>
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
>
On Mon, Apr 6, 2020 at 2:23 PM Michał Policht via Std-Proposals <
std-proposals_at_[hidden]> wrote:
>
> > class X {
> > public:
> > struct ID {
> > enum {
> > NAME = 0x0,
> > SIZE = 0x2,
> > };
> > };
> >
>
> An what's wrong with the above? I'd rather go in that direction and try
> to unify all C++ constructs instead of introducing enum-specific syntax.
>
> Regards,
> Michał
>
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
>
Received on 2020-04-06 07:32:50