Skip to content

mark the move constructor and move assignment operator noexcept in polymorphicsmallobject

Summary

Move operations should be marked noexcept if anyhow possible. This allows to use move operations when storing those objects in stl containers.

Details

See the notes in https://en.cppreference.com/w/cpp/language/noexcept_spec#Notes.

Additionally the destroyWrappedObject member-function is marked noexcept since destructors (and similar functions) should always be noexcept.

Merge request reports