Skip to content

Commit

Permalink
Fix a -Wdeprecated warning.
Browse files Browse the repository at this point in the history
    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();
        ^
  • Loading branch information
Quuxplusone committed Apr 16, 2020
1 parent 650c0d5 commit 40827d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion googlemock/include/gmock/gmock-spec-builders.h
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,8 @@ class GTEST_API_ Expectation {
public:
// Constructs a null object that doesn't reference any expectation.
Expectation();

Expectation(const Expectation&) = default;
Expectation& operator=(const Expectation&) = default;
~Expectation();

// This single-argument ctor must not be explicit, in order to support the
Expand Down

0 comments on commit 40827d9

Please sign in to comment.