Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
gpderetta
on Feb 23, 2022
|
parent
|
context
|
favorite
| on:
Current hardware trends make C++ exceptions harder...
FWIW, constructors do not "create" (I assume you mean allocate) memory. That's the job of operator new. A constructor, given a block of untyped memory, will construct an object in it.
worik
on Feb 23, 2022
[–]
Right.
Been a long time.
I would still expect a constructor to return. How can you tell if it failed?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: