C++ Logo


Advanced search

Re: Proposal of constpub (DRAFT 1)

From: Vishal Oza <vickoza_at_[hidden]>
Date: Thu, 21 Nov 2019 19:35:04 -0600
I am not sure I completely like the idea. Some issues I have are:

   1. Do inherited classes are have access to write constpub variables?
   2. Are there way to make const only const to the class? Once I create
   and initialize the class I do not want to change some variables during the
   lifetime of the object but I want to move and transfer ownership of the
   object as well as use standard containers
   3. Is constpub going to effect the nature or public, private and
   protected classes?
   4. Perhap you could also look into changing the nature of const to read
   only field in class and struct definition in C++?

Vishal Oza

On Thu, Nov 21, 2019 at 4:34 AM Andrew Tomazos via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> Please find attached a 2-page draft proposal entitled:
> Proposal of constpub
> It seems a little thing but easy to implement and I think it may have
> broad appeal.
> Anyway, initial thoughts appreciated.
> -Andrew.
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals

Received on 2019-11-21 19:37:46