summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-06-05 19:10:54 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2017-06-05 19:10:54 +0100
commit3778ec835b2dda489ca70d118ddea76dbf32a21b (patch)
tree1ce16819b398216a0f2c67074eedf0812d018d1f
parentAllow default constructor of Blob to support extract, increase compile time t... (diff)
downloadlibdbpp-3778ec835b2dda489ca70d118ddea76dbf32a21b.tar.bz2
libdbpp-3778ec835b2dda489ca70d118ddea76dbf32a21b.tar.xz
libdbpp-3778ec835b2dda489ca70d118ddea76dbf32a21b.zip
Test extracted types can be default constructed
-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); }
}