Prioritize rvalue creator for ColumnTuple

This validates `ColumnTuple::create(Columns({std::move(s_c0), std::move(s_c1)})); `
This commit is contained in:
Amos Bird 2018-11-09 01:24:30 +08:00 committed by GitHub
parent 4609569538
commit 076ec44089
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,7 @@ public:
*/
using Base = COWPtrHelper<IColumn, ColumnTuple>;
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>
static MutablePtr create(Arg && arg) { return Base::create(std::forward<Arg>(arg)); }