Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
kev946
· 8mo ago · 0 comments
Is it okay for push and pop to have noexcept when copy assignment of T could throw?
Comments
[–]
loeg
8mo ago
I'm not sure C++ provides a more satisfying answer here than "don't use this with a T that throws in copy." (And also, why would you want that?)
[–]
kev946
OP
8mo ago
I was just wondering, because the functions are noexcept in OP's code