From 9433bfd6ab6a20292354237db0a8672da8eacd6f Mon Sep 17 00:00:00 2001 From: Davis King Date: Wed, 3 Apr 2019 22:47:44 -0400 Subject: [PATCH] Switched to non-deprecated way to say destructor might throw. --- dlib/sqlite/sqlite_tools.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlib/sqlite/sqlite_tools.h b/dlib/sqlite/sqlite_tools.h index 062a6b2c8..4794bd2a4 100644 --- a/dlib/sqlite/sqlite_tools.h +++ b/dlib/sqlite/sqlite_tools.h @@ -33,7 +33,7 @@ namespace dlib } } - ~transaction() throw (std::exception) + ~transaction() noexcept(false) { if (!committed) db.exec("rollback");