I am getting below error while compiling my test cases derived from testing::Test of google test with C++11. Below error will be thrown if my derived class has HippoMock::MockRepository member.
looser throw specifier for virtual MyTestClass::~MyTestClass noexcept(false) error overriding 'virtual testing::Test::~Test() noexcept(true)'
This error is reported since HippoMock::MockRespository destructor throws exception and define as noexcept(false), However google test destructor defined as 'virtual testing::Test::~Test()'
Resolution:
Please note since legacy code contain lot of HippoMocks code its not feasible to replace all with Google Mock. Also newer code is using google mock.
I just want to know , What are the consequences of defining gtest testing::Test::~Test() noexcept(false) ?
This has resolved by updating to latest version of HippoMocks https://github.com/dascandy/hippomocks.