CtrlLib: Fixed backward compatibility of ArrayCtrl::Column::Sorting

git-svn-id: svn://ultimatepp.org/upp/trunk@11414 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2017-10-25 13:16:03 +00:00
parent 16bc9883f6
commit f05fc4bdc3

View file

@ -125,6 +125,7 @@ public:
Column& Ctrls(Event<int, One<Ctrl>&> factory);
Column& Ctrls(void (*factory)(int, One<Ctrl>&)) { return Ctrls(Event<int, One<Ctrl>&>([=](int a, One<Ctrl>& b){ factory(a, b); })); }
Column& Sorting(Gate<int, int> order) { return SortingLined(order); }
Column& Sorting(int (*c)(const Value& a, const Value& b)) { return SortingBy(c); }
};
struct Order {