Commit 4887e1c4 authored by Davis King's avatar Davis King

Added an exception specification saying that transaction's destructor can throw

since C++11 sets all destructors to noexcept unless otherwise specified.
parent 89d6055f
...@@ -33,7 +33,7 @@ namespace dlib ...@@ -33,7 +33,7 @@ namespace dlib
} }
} }
~transaction() ~transaction() throw (std::exception)
{ {
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