diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-06-05 19:10:54 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-06-05 19:10:54 +0100 |
commit | 3778ec835b2dda489ca70d118ddea76dbf32a21b (patch) | |
tree | 1ce16819b398216a0f2c67074eedf0812d018d1f | |
parent | Allow default constructor of Blob to support extract, increase compile time t... (diff) | |
download | libdbpp-3778ec835b2dda489ca70d118ddea76dbf32a21b.tar.bz2 libdbpp-3778ec835b2dda489ca70d118ddea76dbf32a21b.tar.xz libdbpp-3778ec835b2dda489ca70d118ddea76dbf32a21b.zip |
Test extracted types can be default constructed
-rw-r--r-- | libdbpp/unittests/testUtils.cpp | 3 |
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); } } |