Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
pif
5mo ago
0 comments
Share
> I WANT to be able to separate allocation from initialization.
Which hardly ever makes sense, and is possible with clean C++ anyway...
0 comments
default
newest
oldest
1718627440
5mo ago
> is possible with clean C++ anyway...
That's news to me; how?
cozzyd
5mo ago
Placement new?
1718627440
5mo 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.
j
/
k
navigate · click thread line to collapse