mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 05:22:17 +00:00
add move semantics
This commit is contained in:
parent
54108d5c16
commit
57e77cc815
@ -485,13 +485,13 @@ public:
|
||||
}
|
||||
template <typename T> auto safeGet() const &&
|
||||
{
|
||||
return safeGet<T>();
|
||||
return std::move(const_cast<Field *>(this)->safeGet<T>());
|
||||
}
|
||||
|
||||
template <typename T> auto & safeGet() &;
|
||||
template <typename T> auto safeGet() &&
|
||||
{
|
||||
return safeGet<T>();
|
||||
return std::move(safeGet<T>());
|
||||
}
|
||||
|
||||
bool operator< (const Field & rhs) const
|
||||
|
Loading…
Reference in New Issue
Block a user