Y
Hacker News
new
|
ask
|
show
|
jobs
by
pif
266 days ago
> I WANT to be able to separate allocation from initialization.
Which hardly ever makes sense, and is possible with clean C++ anyway...
1 comments
1718627440
266 days ago
> is possible with clean C++ anyway...
That's news to me; how?
link
cozzyd
266 days ago
Placement new?
link
1718627440
266 days ago
I 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.
link
That's news to me; how?