C++ Logo

std-discussion

Advanced search

Is there any way to override constructors for primitive types?

From: Vishal Oza <vickoza_at_[hidden]>
Date: Tue, 18 Feb 2020 09:46:29 -0600
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 09:50:14