From 11e0b333dc6ef9a3c17fffb9c40b4d2230f2f715 Mon Sep 17 00:00:00 2001 From: millb Date: Fri, 6 Dec 2019 22:27:34 +0300 Subject: [PATCH] Fixed bugs --- dbms/src/IO/ReadHelpers.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dbms/src/IO/ReadHelpers.h b/dbms/src/IO/ReadHelpers.h index e06d70bd81b..bf92e73722a 100644 --- a/dbms/src/IO/ReadHelpers.h +++ b/dbms/src/IO/ReadHelpers.h @@ -877,6 +877,9 @@ inline T parse(const char * data, size_t size) return res; } +template +inline void readTextWithSuffix(T & x, ReadBuffer & buf) { readText(x, buf); } + template inline std::enable_if_t, void> readTextWithSuffix(T & x, ReadBuffer & buf) @@ -956,9 +959,6 @@ readTextWithSuffix(T & x, ReadBuffer & buf) return; } -template -inline void readTextWithSuffix(T & x, ReadBuffer & buf) { readText(x, buf); } - /// Read something from text format, but expect complete parse of given text /// For example: 723145 -- ok, 213MB -- not ok template