summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-08-21 00:24:40 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2018-08-21 00:24:40 +0100
commit942b7ff467c776e2e1213f8eeff4d41c26ad3185 (patch)
treea5e1444a0d5e9ac7b98e36b1392a6ced2a05f9a2
parentC++17 deprecation warnings from GCC 8.2 (diff)
downloadlibdbpp-942b7ff467c776e2e1213f8eeff4d41c26ad3185.tar.bz2
libdbpp-942b7ff467c776e2e1213f8eeff4d41c26ad3185.tar.xz
libdbpp-942b7ff467c776e2e1213f8eeff4d41c26ad3185.zip
Workaround Clang warning about evaluation with typeid
-rw-r--r--libdbpp/unittests/testMock.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libdbpp/unittests/testMock.cpp b/libdbpp/unittests/testMock.cpp
index 9a3eba6..7b71312 100644
--- a/libdbpp/unittests/testMock.cpp
+++ b/libdbpp/unittests/testMock.cpp
@@ -22,7 +22,8 @@ BOOST_AUTO_TEST_CASE( mockFactory )
BOOST_REQUIRE(m);
auto c = m->openConnection();
BOOST_REQUIRE(c);
- BOOST_REQUIRE_EQUAL(typeid(MockDb), typeid(*c));
+ auto & cr = *c;
+ BOOST_REQUIRE_EQUAL(typeid(MockDb), typeid(cr));
}
BOOST_AUTO_TEST_CASE( missingMock )