C++ Logo

STD-DISCUSSION

Advanced search

Subject: Re: Is there any way to override constructors for primitive types?
From: Michael Hava (mfh_at_[hidden])
Date: 2020-02-18 10:41:38


Nope, you can’t modify built-in types…

From: Std-Discussion <std-discussion-bounces_at_[hidden]> On Behalf Of Vishal Oza via Std-Discussion
Sent: Tuesday, February 18, 2020 4:46 PM
To: std-discussion_at_[hidden]
Cc: Vishal Oza <vickoza_at_[hidden]>
Subject: [std-discussion] Is there any way to override constructors for primitive types?

Is there any way to override constructors for primitive types? If there is what is the way to do that. If not I would like to purpose a way to do that is a future standard. The reason way is to teach how C++ works from writing simple code by logging constructor and destructor calls of even primitive object without changing the object themselves
Vishal Oza



STD-DISCUSSION list run by std-discussion-owner@lists.isocpp.org

Older Archives on Google Groups