summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdbpp/unittests/testUtils.cpp3
1 files changed, 3 insertions, 0 deletions
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<T> row) {
template<typename T>
void
testExtractT(DB::SelectCommandPtr sel) {
+ // test default construct
+ T test;
+ (void)test;
for (const auto & row : sel->as<T>()) { testExtractT(row); }
for (const auto & row : sel->as<boost::optional<T>>()) { testExtractT(row); }
}