Skip to content

Commit

Permalink
[C++] Explicitly define copy constructor for AnyBase
Browse files Browse the repository at this point in the history
Gcc 14.2 generates a warning (-Wdeprecated-copy) for AnyBase because the assignment operator is defined explicitly but the copy constructor is defined implicitly.
  • Loading branch information
g3bk47 authored and ischoegl committed Dec 31, 2024
1 parent 3d0c126 commit 2e0d8ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/cantera/base/AnyMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ namespace Cantera
class AnyBase {
public:
AnyBase() = default;
AnyBase(const AnyBase& other) = default;
virtual ~AnyBase() = default;
AnyBase& operator=(const AnyBase& other);

Expand Down

0 comments on commit 2e0d8ac

Please sign in to comment.