Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
dbcpp
· 10mo ago · 0 comments
I would argue performance-noexcept-move-constructor should always be on. Move constructors should almost always be noexcept since they typically just move pointers around and don't do allocations normally.
Comments
[–]
jcelerier
10mo ago
eh, depends. for instance think about a small_vector or small_string
[–]
dbcpp
OP
10mo ago
True, in that case it should just adopt the noexcept status of the object it holds.