Fix a -Wdeprecated warning.
gmock-spec-builders.h:503:3: error:
definition of implicit copy constructor for 'Expectation' is deprecated
because it has a user-declared destructor [-Werror,-Wdeprecated]
~Expectation();
^
This commit is contained in:
@@ -499,7 +499,10 @@ class GTEST_API_ Expectation {
|
||||
public:
|
||||
// Constructs a null object that doesn't reference any expectation.
|
||||
Expectation();
|
||||
|
||||
Expectation(Expectation&&) = default;
|
||||
Expectation(const Expectation&) = default;
|
||||
Expectation& operator=(Expectation&&) = default;
|
||||
Expectation& operator=(const Expectation&) = default;
|
||||
~Expectation();
|
||||
|
||||
// This single-argument ctor must not be explicit, in order to support the
|
||||
|
||||
Reference in New Issue
Block a user