C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Let constructor know if object is const or volatile

From: Thiago Macieira <thiago_at_[hidden]>
Date: Thu, 28 Sep 2023 12:29:14 -0700
On Thursday, 28 September 2023 03:50:14 PDT Frederick Virchanza Gotham via
Std-Proposals wrote:
> This code snippet doesn't print "This is a const object" because
> 'this' is a pointer to non-const inside the constructor.

You forgot to include a motivation in your email.

You're showing a solution in search of a problem. What is the problem that
you're trying to solve?

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering

Received on 2023-09-28 19:29:17