What does (ptr) stands for and why does it change the data stored in ptr?
struct X
{
int a;
int const b;
};
X* ptr = new X{ 1, 2 };
X* nptr = new (ptr) X{ 3, 4 };
And for some reason it doesn't run in any godbolt's compilers but does in visual studio