"googlemock/src/gmock-internal-utils.cc" did not exist on "2fd619edd3d1ec053f6276debdb513f1122ebcf3"
Commit 11b3cec1 authored by Arthur O'Dwyer's avatar Arthur O'Dwyer
Browse files

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();
        ^
parent 766ac2e1
...@@ -499,7 +499,10 @@ class GTEST_API_ Expectation { ...@@ -499,7 +499,10 @@ class GTEST_API_ Expectation {
public: public:
// Constructs a null object that doesn't reference any expectation. // Constructs a null object that doesn't reference any expectation.
Expectation(); Expectation();
Expectation(Expectation&&) = default;
Expectation(const Expectation&) = default;
Expectation& operator=(Expectation&&) = default;
Expectation& operator=(const Expectation&) = default;
~Expectation(); ~Expectation();
// This single-argument ctor must not be explicit, in order to support the // This single-argument ctor must not be explicit, in order to support the
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment