Commit 9433bfd6 authored by Davis King's avatar Davis King

Switched to non-deprecated way to say destructor might throw.

parent 64ad6b25
...@@ -33,7 +33,7 @@ namespace dlib ...@@ -33,7 +33,7 @@ namespace dlib
} }
} }
~transaction() throw (std::exception) ~transaction() noexcept(false)
{ {
if (!committed) if (!committed)
db.exec("rollback"); db.exec("rollback");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment