Sorry if this question will sound stupid, but I\'m just starting to learn C++ and there is something confusing me about the placement new
I\'ve been reading C++ Prim
There are no stupid questions.
It uses char probably because it makes you think about raw bytes (char is usually 1 byte long). The last line on the code is not allocating memory, it just places a double array over the mentioned buffer. If it was an object, it would also call the constructor. Yes, the char array gets overwritten.