Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
yngccc
on Oct 23, 2013
|
parent
|
context
|
favorite
| on:
Deep C and C++ (2011)
The girl forgot to mention exception safety on the class A slide, no hire.
jmgao
on Oct 23, 2013
|
next
[–]
The constructor also wasn't tagged explicit.
kirab
on Oct 23, 2013
|
prev
|
next
[–]
If B() is noexcept then A() is actually exception safe. The only thing which could happen would be bad_alloc but then v does not have to be deleted any more.
zvrba
on Oct 23, 2013
|
prev
|
next
[–]
Right, like what happens with the memory allocated for px in situation like below, if new ClassY throws?
A::A() : px(new ClassX), py(new ClassY) { }
hamidr
on Oct 23, 2013
|
prev
[–]
lol yeah But she is a C programmer you know ? ;)
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: