From e1d955d92b80dc26fd59f865467545aa1a7f2125 Mon Sep 17 00:00:00 2001 From: elsid Date: Sat, 24 Apr 2021 00:16:57 +0200 Subject: [PATCH] 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. --- apps/openmw/mwclass/creature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwclass/creature.cpp b/apps/openmw/mwclass/creature.cpp index 6b8d2f3f25..5ce9a66ab7 100644 --- a/apps/openmw/mwclass/creature.cpp +++ b/apps/openmw/mwclass/creature.cpp @@ -60,7 +60,7 @@ namespace MWClass CreatureCustomData() = default; CreatureCustomData(const CreatureCustomData& other); - CreatureCustomData(CreatureCustomData&& other) noexcept = default; + CreatureCustomData(CreatureCustomData&& other) = default; CreatureCustomData& asCreatureCustomData() override {