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

@@ -51,7 +51,7 @@ Database::Database(const std::string& aFilename, const int aFlags /*= SQLITE_OPE
}
// Close the SQLite database connection.
Database::~Database(void) throw() // nothrow
Database::~Database(void) noexcept // nothrow
{
int ret = sqlite3_close(mpSQLite);
// Never throw an exception in a destructor