Fix -Wdeprecated warning in this test code. NFC.
/home/travis/build/Quuxplusone/googletest/googletest/test/googletest-port-test.cc:97:11: error: definition of implicit copy constructor for 'Base' is deprecated because it has a user-declared destructor [-Werror,-Wdeprecated] virtual ~Base() {} ^ /home/travis/build/Quuxplusone/googletest/googletest/test/googletest-port-test.cc:116:56: note: implicit copy constructor for 'Base' first required here Base base = ::testing::internal::ImplicitCast_<Base>(derived); ^
This commit is contained in:
parent
eb69ae8202
commit
213a8a8f39
@ -90,9 +90,9 @@ TEST(IsXDigitTest, ReturnsFalseForWideNonAscii) {
|
||||
|
||||
class Base {
|
||||
public:
|
||||
// Copy constructor and assignment operator do exactly what we need, so we
|
||||
// use them.
|
||||
Base() : member_(0) {}
|
||||
Base(const Base&) = default;
|
||||
Base& operator=(const Base&) = default;
|
||||
explicit Base(int n) : member_(n) {}
|
||||
virtual ~Base() {}
|
||||
int member() { return member_; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user