Remove noexcept specifier from CreatureCustomData move ctor

C++17 doesn't allow to declare defaulted move ctor with not matching
exception specification to the calculated one:
/Users/eddie/Downloads/BUILD/openmw-master/apps/openmw/mwclass/creature.cpp:63:9: error:
      exception specification of explicitly defaulted move constructor does not
      match the calculated one
        CreatureCustomData(CreatureCustomData&& other) noexcept = default;
        ^

http://wg21.link/p1286r2 makes this possible in C++20 and newer compilers
already have it working even with -std=c++17 but older onces give an error.
pull/593/head
elsid 4 years ago
parent ca7add0624
commit e1d955d92b
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40

@ -60,7 +60,7 @@ namespace MWClass
CreatureCustomData() = default; CreatureCustomData() = default;
CreatureCustomData(const CreatureCustomData& other); CreatureCustomData(const CreatureCustomData& other);
CreatureCustomData(CreatureCustomData&& other) noexcept = default; CreatureCustomData(CreatureCustomData&& other) = default;
CreatureCustomData& asCreatureCustomData() override CreatureCustomData& asCreatureCustomData() override
{ {

Loading…
Cancel
Save