From 2e0d8acddc325a0193565a05427a0c827a5107bc Mon Sep 17 00:00:00 2001 From: ThorstenZirwes Date: Sun, 29 Dec 2024 01:09:41 +0100 Subject: [PATCH] [C++] Explicitly define copy constructor for AnyBase Gcc 14.2 generates a warning (-Wdeprecated-copy) for AnyBase because the assignment operator is defined explicitly but the copy constructor is defined implicitly. --- include/cantera/base/AnyMap.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/cantera/base/AnyMap.h b/include/cantera/base/AnyMap.h index e0c3f36e20..0fe16a951f 100644 --- a/include/cantera/base/AnyMap.h +++ b/include/cantera/base/AnyMap.h @@ -34,6 +34,7 @@ namespace Cantera class AnyBase { public: AnyBase() = default; + AnyBase(const AnyBase& other) = default; virtual ~AnyBase() = default; AnyBase& operator=(const AnyBase& other);