From e17d77245b340f2709e74fa699a5d7aca5116faf Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Wed, 17 Sep 2014 21:29:33 +0200 Subject: [PATCH] Fix for clang warning about Column's implicit constructor. >> definition of implicit copy constructor for 'Column' is deprecated because it has a user-declared destructor [-Wdeprecated] << --- include/SQLiteCpp/Column.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/SQLiteCpp/Column.h b/include/SQLiteCpp/Column.h index 93ce278..1072031 100644 --- a/include/SQLiteCpp/Column.h +++ b/include/SQLiteCpp/Column.h @@ -43,6 +43,13 @@ namespace SQLite class Column { public: + // Make clang happy by explicitly implementing the copy-constructor: + Column(const Column & aOther) : + mStmtPtr(aOther.mStmtPtr), + mIndex(aOther.mIndex) + { + } + /** * @brief Encapsulation of a Column in a Row of the result. *