From 3778ec835b2dda489ca70d118ddea76dbf32a21b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 5 Jun 2017 19:10:54 +0100 Subject: Test extracted types can be default constructed --- libdbpp/unittests/testUtils.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libdbpp/unittests/testUtils.cpp b/libdbpp/unittests/testUtils.cpp index 434a574..aea70b6 100644 --- a/libdbpp/unittests/testUtils.cpp +++ b/libdbpp/unittests/testUtils.cpp @@ -314,6 +314,9 @@ testExtractT(DB::Row row) { template void testExtractT(DB::SelectCommandPtr sel) { + // test default construct + T test; + (void)test; for (const auto & row : sel->as()) { testExtractT(row); } for (const auto & row : sel->as>()) { testExtractT(row); } } -- cgit v1.2.3