mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
Fixed build with gcc 6 [#CLICKHOUSE-2].
This commit is contained in:
parent
a6cb383c4f
commit
9a546b5414
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user