From 942b7ff467c776e2e1213f8eeff4d41c26ad3185 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 21 Aug 2018 00:24:40 +0100 Subject: Workaround Clang warning about evaluation with typeid --- libdbpp/unittests/testMock.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) -- cgit v1.2.3