Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by dbcpp

11 hours ago

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.

3 comments

dbcpp

Reply

jcelerier  9 hours ago

eh, depends. for instance think about a small_vector or small_string

  • dbcpp  9 hours ago

    True, in that case it should just adopt the noexcept status of the object it holds.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities