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");