Using the C++11 "noexcept" keyword instead of "throw()"

- added a compatibility #define for older compilers
This commit is contained in:
Sébastien Rombauts
2014-02-26 19:36:43 +01:00
parent b2a34a1ee4
commit b0e9104047
10 changed files with 62 additions and 44 deletions

View File

@@ -12,7 +12,6 @@
#include "Database.h"
#include "Assertion.h"
#include "Exception.h"
namespace SQLite
@@ -28,7 +27,7 @@ Transaction::Transaction(Database& aDatabase) : // throw(SQLite::Exception)
}
// Safely rollback the transaction if it has not been committed.
Transaction::~Transaction(void) throw() // nothrow
Transaction::~Transaction(void) noexcept // nothrow
{
if (false == mbCommited)
{