summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-08-21 00:13:30 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2018-08-21 00:13:30 +0100
commite488ba3edf187e8237f39bcbc3d3d5c358d6c124 (patch)
treea4c310d8d4f5bb4476baa5f3018d39cdf6a76d36
parentRename submodule (diff)
downloadlibdbpp-e488ba3edf187e8237f39bcbc3d3d5c358d6c124.tar.bz2
libdbpp-e488ba3edf187e8237f39bcbc3d3d5c358d6c124.tar.xz
libdbpp-e488ba3edf187e8237f39bcbc3d3d5c358d6c124.zip
C++17 deprecation warnings from GCC 8.2
-rw-r--r--libdbpp/connection.cpp2
m---------libdbpp/unittests/libdbpp-postgresql0
2 files changed, 1 insertions, 1 deletions
diff --git a/libdbpp/connection.cpp b/libdbpp/connection.cpp
index 5c63d0a..91fdf6a 100644
--- a/libdbpp/connection.cpp
+++ b/libdbpp/connection.cpp
@@ -193,7 +193,7 @@ DB::TransactionScope::TransactionScope(DB::Connection & c) :
DB::TransactionScope::~TransactionScope()
{
- if (std::uncaught_exception()) {
+ if (std::uncaught_exceptions()) {
conn.rollbackTx();
}
else {
diff --git a/libdbpp/unittests/libdbpp-postgresql b/libdbpp/unittests/libdbpp-postgresql
-Subproject fbad5dcdf8f17d1a3f3ff954f48b55d605d0a50
+Subproject f6686d1bf35611b779189f80b46079070809489