mirror of https://github.com/davisking/dlib.git
Switched to non-deprecated way to say destructor might throw.
This commit is contained in:
parent
64ad6b2591
commit
9433bfd6ab
|
@ -33,7 +33,7 @@ namespace dlib
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
~transaction() throw (std::exception)
|
~transaction() noexcept(false)
|
||||||
{
|
{
|
||||||
if (!committed)
|
if (!committed)
|
||||||
db.exec("rollback");
|
db.exec("rollback");
|
||||||
|
|
Loading…
Reference in New Issue