mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Merge pull request #3552 from amosbird/patch-14
Prioritize rvalue creator for ColumnTuple
This commit is contained in:
commit
93a3f1663e
@ -31,6 +31,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
using Base = COWPtrHelper<IColumn, ColumnTuple>;
|
using Base = COWPtrHelper<IColumn, ColumnTuple>;
|
||||||
static Ptr create(const Columns & columns);
|
static Ptr create(const Columns & columns);
|
||||||
|
static Ptr create(Columns && arg) { return create(arg); }
|
||||||
|
|
||||||
template <typename Arg, typename = typename std::enable_if<std::is_rvalue_reference<Arg &&>::value>::type>
|
template <typename Arg, typename = typename std::enable_if<std::is_rvalue_reference<Arg &&>::value>::type>
|
||||||
static MutablePtr create(Arg && arg) { return Base::create(std::forward<Arg>(arg)); }
|
static MutablePtr create(Arg && arg) { return Base::create(std::forward<Arg>(arg)); }
|
||||||
|
Loading…
Reference in New Issue
Block a user