Date: Tue, 18 Feb 2020 16:41:38 +0000
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]rg
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
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]rg
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
Received on 2020-02-18 10:44:19