namespace isc {
namespace db {
-bool MySqlHolder::atexit_ = []{atexit([]{mysql_library_end();});return true;};
+int MySqlHolder::atexit_ = [] {
+ return atexit([] { mysql_library_end(); });
+}();
/// @todo: Migrate this default value to src/bin/dhcpX/simple_parserX.cc
const int MYSQL_DEFAULT_CONNECTION_TIMEOUT = 5; // seconds
}
private:
- static bool atexit_; ///< Flag to call atexit once.
+ /// @brief Variable used for its static property to call atexit() once.
+ static int atexit_;
- MYSQL* mysql_; ///< Initialization context
+ /// @brief Initialization context
+ MYSQL* mysql_;
};
/// @brief Forward declaration to @ref MySqlConnection.