Skip to content

Commit 4f83683

Browse files
authored
Fixed compilation error on windows
1 parent 335ff07 commit 4f83683

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clickhouse/base/wire_format.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,9 @@ bool WireFormat::SkipString(InputStream& input) {
103103

104104
inline const char* find_quoted_chars(const char* start, const char* end)
105105
{
106-
static constexpr std::array quoted_chars {'\0', '\b', '\t', '\n', '\'', '\\'};
107-
const auto first = std::find_first_of(start, end, quoted_chars.begin(), quoted_chars.end());
106+
static constexpr char quoted_chars[] = {'\0', '\b', '\t', '\n', '\'', '\\'};
107+
const auto first = std::find_first_of(start, end, std::begin(quoted_chars), std::end(quoted_chars));
108+
108109
return (first == end) ? nullptr : first;
109110
}
110111

0 commit comments

Comments
 (0)