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

 

From: Std-Discussion <std-discussion-bounces@lists.isocpp.org> On Behalf Of Vishal Oza via Std-Discussion
Sent: Tuesday, February 18, 2020 4:46 PM
To: std-discussion@lists.isocpp.org
Cc: Vishal Oza <vickoza@gmail.com>
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