Fixed bugs

This commit is contained in:
millb 2019-12-06 22:27:34 +03:00
parent 16ce798345
commit 11e0b333dc

View File

@ -877,6 +877,9 @@ inline T parse(const char * data, size_t size)
return res;
}
template <typename T>
inline void readTextWithSuffix(T & x, ReadBuffer & buf) { readText(x, buf); }
template <typename T>
inline std::enable_if_t<is_integral_v<T>, void>
readTextWithSuffix(T & x, ReadBuffer & buf)
@ -956,9 +959,6 @@ readTextWithSuffix(T & x, ReadBuffer & buf)
return;
}
template <typename T>
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 <typename T>