Fixed build with gcc 6 [#CLICKHOUSE-2].

This commit is contained in:
Alexey Milovidov 2017-08-01 04:58:18 +03:00
parent a6cb383c4f
commit 9a546b5414

View File

@ -4,6 +4,7 @@
#include <list>
#include <string>
#include <set>
#include <initializer_list>
#include <DataTypes/IDataType.h>
#include <Core/Names.h>
@ -36,12 +37,14 @@ using NamesAndTypes = std::vector<NameAndTypePair>;
class NamesAndTypesList : public std::list<NameAndTypePair>
{
public:
using std::list<NameAndTypePair>::list;
NamesAndTypesList() {}
NamesAndTypesList(std::initializer_list<NameAndTypePair> init) : std::list<NameAndTypePair>(init) {}
/// Without this constructor, gcc 7.1.0 get confused.
template <typename Iterator>
NamesAndTypesList(Iterator begin, Iterator end) : std::list<NameAndTypePair>(begin, end) {}
void readText(ReadBuffer & buf);
void writeText(WriteBuffer & buf) const;