From 300f2782816e3decfa0199b6e34f2d053f123945 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rombauts?= Date: Wed, 6 Jul 2016 09:05:23 +0200 Subject: [PATCH] Move #include from Column.h to the .cpp --- include/SQLiteCpp/Column.h | 8 ++------ src/Column.cpp | 8 ++++++++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/include/SQLiteCpp/Column.h b/include/SQLiteCpp/Column.h index 0f19459..dbef68c 100644 --- a/include/SQLiteCpp/Column.h +++ b/include/SQLiteCpp/Column.h @@ -10,8 +10,6 @@ */ #pragma once -#include - #include #include @@ -236,10 +234,8 @@ public: #endif /// Return UTF-8 encoded English language explanation of the most recent error. - inline const char* errmsg() const - { - return sqlite3_errmsg(mStmtPtr); - } + const char* errmsg() const; + private: Statement::Ptr mStmtPtr; //!< Shared Pointer to the prepared SQLite Statement Object int mIndex; //!< Index of the column in the row of result, starting at 0 diff --git a/src/Column.cpp b/src/Column.cpp index 3211ee3..81d61c4 100644 --- a/src/Column.cpp +++ b/src/Column.cpp @@ -10,6 +10,8 @@ */ #include +#include + #include @@ -104,6 +106,12 @@ int Column::getBytes() const noexcept // nothrow return sqlite3_column_bytes(mStmtPtr, mIndex); } +// Return UTF-8 encoded English language explanation of the most recent error. +const char* Column::errmsg() const +{ + return sqlite3_errmsg(mStmtPtr); +} + // Standard std::ostream inserter std::ostream& operator<<(std::ostream& aStream, const Column& aColumn) {