From 9be03de9b9ce1688e49e0a3429632b510a2ad242 Mon Sep 17 00:00:00 2001 From: heck Date: Thu, 3 Mar 2022 01:01:22 +0100 Subject: [PATCH] pEpSQLite: rule of 5 (non copyable explicitly) --- src/pEpSQLite.hh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/pEpSQLite.hh b/src/pEpSQLite.hh index 11a2adc..f96bd66 100644 --- a/src/pEpSQLite.hh +++ b/src/pEpSQLite.hh @@ -16,10 +16,15 @@ using RSRecord = std::map; namespace pEp { class pEpSQLite { public: - pEpSQLite() = delete; - // The database file as a constant for the obj lifetime explicit pEpSQLite(const std::string& db_path); + + pEpSQLite() = delete; + pEpSQLite(const pEpSQLite&) = delete; + pEpSQLite(const pEpSQLite&&) = delete; + pEpSQLite& operator=(const pEpSQLite&) = delete; + pEpSQLite& operator=(const pEpSQLite&&) = delete; + std::string get_db_path() const; // Creates the database file not existsing