From a919003b4a4899a0999920c4168c08dc6d049917 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 22 Aug 2018 22:17:56 +0100 Subject: Move multi_index for columns out of header --- libdbpp/selectcommand.cpp | 9 +++++++++ libdbpp/selectcommand.h | 11 +---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/libdbpp/selectcommand.cpp b/libdbpp/selectcommand.cpp index fd0c58e..d47137d 100644 --- a/libdbpp/selectcommand.cpp +++ b/libdbpp/selectcommand.cpp @@ -2,6 +2,9 @@ #include "error.h" #include #include +#include +#include +#include #include namespace DB { @@ -22,6 +25,12 @@ namespace DB { { return ColumnDoesNotExistMsg::get(colName); } + + typedef boost::multi_index_container>, + boost::multi_index::ordered_unique> + >> ColumnsBase; + class SelectCommand::Columns : public ColumnsBase { }; }; DB::SelectCommand::SelectCommand(const std::string & sql) : diff --git a/libdbpp/selectcommand.h b/libdbpp/selectcommand.h index ee4c9ad..5399b01 100644 --- a/libdbpp/selectcommand.h +++ b/libdbpp/selectcommand.h @@ -4,11 +4,6 @@ #include "command.h" #include "column.h" #include "error.h" -#include -#include -#include -#include -#include #include #include #include @@ -135,11 +130,7 @@ namespace DB { /// Helper function so clients need not know about boost::multi_index_container. ColumnPtr insertColumn(ColumnPtr); - /// Friendly typedef cos boost::multi_index_container definitions are massive. - typedef boost::multi_index_container>, - boost::multi_index::ordered_unique> - >> Columns; + class Columns; /// Columns in the result set. Columns * columns; -- cgit v1.2.3