4 ms·
> I WANT to be able to separate allocation from initialization. Which hardly ever makes sense, and is possible with clean C++ anyway...
by pif 1y ago
> I WANT to be able to separate allocation from initialization.
Which hardly ever makes sense, and is possible with clean C++ anyway...
- 1718627440 1y ago> is possible with clean C++ anyway... That's news to me; how?
- cozzyd 1y agoPlacement new?
- 1718627440 1y agoI might also use placement new after taking a pointer to a stack object or global, but it won't prevent the original constructor from being run.