diff --git a/include/SQLiteCpp/Column.h b/include/SQLiteCpp/Column.h index be0babc..041a9a9 100644 --- a/include/SQLiteCpp/Column.h +++ b/include/SQLiteCpp/Column.h @@ -261,21 +261,23 @@ private: std::ostream& operator<<(std::ostream& aStream, const Column& aColumn); #if __cplusplus >= 201402L || (defined(_MSC_VER) && _MSC_VER >= 1900) - // Create an instance of T from the first N columns, see declaration in Statement.h for full details - template - T Statement::getColumns() - { - checkRow(); - checkIndex(N - 1); - return getColumns(std::make_integer_sequence{}); - } - // Helper function called by getColums - template - T Statement::getColumns(const std::integer_sequence) - { - return T(Column(mStmtPtr, Is)...); - } +// Create an instance of T from the first N columns, see declaration in Statement.h for full details +template +T Statement::getColumns() +{ + checkRow(); + checkIndex(N - 1); + return getColumns(std::make_integer_sequence{}); +} + +// Helper function called by getColums +template +T Statement::getColumns(const std::integer_sequence) +{ + return T{Column(mStmtPtr, Is)...}; +} + #endif } // namespace SQLite