(C++/Win32)
consider the following call:
Object obj = new Object(a,b); other than allocating the virtual memory needed for an instance of an Object, what else is going on under the hood up there? does the compiler places an explicit call to the constructor of Object?
is there any way to initialize a c++ object dynamically without the use of the keyword new?
{ Object obj{a,b}; }allocates an object as well, and destroys it, without any usage ofnewordelete.