mark the move constructor and move assignment operator noexcept in polymorphicsmallobject
requested to merge simon.praetorius/dune-functions:issue/polymorphic_small_object_move_constructor into master
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.