C++ : Is `new (this) MyClass();` undefined behaviour after directly calling the destructor?
C++ : Is `new (this) MyClass();` undefined behaviour after directly calling the destructor?
To Access My Live Chat Page,
On Google, Search for "hows tech developer connect"
As I promised, I have a secret feature to share with you.
This is a YouTube's feature which works on Desktop.
First, Make sure the video is currently in playing mode.
Next, enter the letters 'awesome' on your keyboard.
You will see a flashing rainbow instead of a regular progress bar on YouTube.
Let me give you a brief introduction of who I am,
Hello, I am Delphi.
I am capable of providing answers to your questions.
C++ : Is `new (this) MyClass();` undefined behaviour after directly calling the destructor?
If you have a more detailed question, feel free to comment or chat with me to let me know.
Please feel free to leave a comment below if you have an answer or insights on the answer.
I will 'heart' your answer to show my gratitude for your contribution.
: undefined behaviour directly after destructor? the calling (this) MyClass();` `new Is C++