From e9ae49c68b7e020c21a64cce200b685817fde348 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Mar=C3=ADn?= Date: Mon, 29 Nov 2021 10:47:12 +0100 Subject: [PATCH] IParser: Set to vector --- src/Parsers/IParser.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Parsers/IParser.h b/src/Parsers/IParser.h index 65b4b6df7f2..0d0e65082a9 100644 --- a/src/Parsers/IParser.h +++ b/src/Parsers/IParser.h @@ -1,7 +1,7 @@ #pragma once -#include #include +#include #include #include @@ -25,7 +25,7 @@ namespace ErrorCodes struct Expected { const char * max_parsed_pos = nullptr; - std::set variants; + std::vector variants; /// 'description' should be statically allocated string. void add(const char * current_pos, const char * description) @@ -37,7 +37,7 @@ struct Expected } if (!max_parsed_pos || current_pos >= max_parsed_pos) - variants.insert(description); + variants.push_back(description); } void add(TokenIterator it, const char * description)