mirror of
https://github.com/google/googletest.git
synced 2025-01-14 00:20:57 +08:00
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:
parent
766ac2e1a4
commit
11b3cec177
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user