Mirror change

This commit is contained in:
flynn 2023-09-04 15:54:01 +00:00
parent 3723fe753e
commit 8251ba2951
4 changed files with 6 additions and 6 deletions

View File

@ -119,7 +119,7 @@ public:
return true; return true;
} }
template <typename TValue = Value, bool = true, typename... Args> template <typename TValue = Value, typename... Args>
requires(!std::is_same_v<TValue, IntervalTreeVoidValue>) requires(!std::is_same_v<TValue, IntervalTreeVoidValue>)
ALWAYS_INLINE bool emplace(Interval interval, Args &&... args) ALWAYS_INLINE bool emplace(Interval interval, Args &&... args)
{ {

View File

@ -189,7 +189,7 @@ void SerializationNullable::serializeBinary(const IColumn & column, size_t row_n
/// Deserialize value into ColumnNullable. /// Deserialize value into ColumnNullable.
/// We need to insert both to nested column and to null byte map, or, in case of exception, to not insert at all. /// We need to insert both to nested column and to null byte map, or, in case of exception, to not insert at all.
template <typename ReturnType = void, typename CheckForNull, typename DeserializeNested, ReturnType * = nullptr> template <typename ReturnType = void, typename CheckForNull, typename DeserializeNested>
requires std::same_as<ReturnType, void> requires std::same_as<ReturnType, void>
static ReturnType static ReturnType
safeDeserialize(IColumn & column, const ISerialization &, CheckForNull && check_for_null, DeserializeNested && deserialize_nested) safeDeserialize(IColumn & column, const ISerialization &, CheckForNull && check_for_null, DeserializeNested && deserialize_nested)
@ -217,7 +217,7 @@ safeDeserialize(IColumn & column, const ISerialization &, CheckForNull && check_
} }
/// Deserialize value into non-nullable column. In case of NULL, insert default value and return false. /// Deserialize value into non-nullable column. In case of NULL, insert default value and return false.
template <typename ReturnType = void, typename CheckForNull, typename DeserializeNested, ReturnType * = nullptr> template <typename ReturnType = void, typename CheckForNull, typename DeserializeNested>
requires std::same_as<ReturnType, bool> requires std::same_as<ReturnType, bool>
static ReturnType static ReturnType
safeDeserialize(IColumn & column, const ISerialization &, CheckForNull && check_for_null, DeserializeNested && deserialize_nested) safeDeserialize(IColumn & column, const ISerialization &, CheckForNull && check_for_null, DeserializeNested && deserialize_nested)

View File

@ -594,14 +594,14 @@ struct JavaHashImpl
static_cast<uint32_t>(x) ^ static_cast<uint32_t>(static_cast<uint64_t>(x) >> 32)); static_cast<uint32_t>(x) ^ static_cast<uint32_t>(static_cast<uint64_t>(x) >> 32));
} }
template <class T, T * = nullptr> template <class T>
requires std::same_as<T, int8_t> || std::same_as<T, int16_t> || std::same_as<T, int32_t> requires std::same_as<T, int8_t> || std::same_as<T, int16_t> || std::same_as<T, int32_t>
static ReturnType apply(T x) static ReturnType apply(T x)
{ {
return x; return x;
} }
template <class T, T * = nullptr> template <class T>
requires(!std::same_as<T, int8_t> && !std::same_as<T, int16_t> && !std::same_as<T, int32_t>) requires(!std::same_as<T, int8_t> && !std::same_as<T, int16_t> && !std::same_as<T, int32_t>)
static ReturnType apply(T x) static ReturnType apply(T x)
{ {

View File

@ -89,7 +89,7 @@ public:
} }
template <typename T, typename... Args> template <typename T, typename... Args>
requires (!std::same_as<T, DateTime64>) requires(!std::same_as<T, DateTime64>)
inline auto execute(const T & t, Args &&... args) const inline auto execute(const T & t, Args &&... args) const
{ {
return wrapped_transform.execute(t, std::forward<Args>(args)...); return wrapped_transform.execute(t, std::forward<Args>(args)...);