C++14 for xgboost (#5664)

This commit is contained in:
Andy Adinets
2020-05-21 02:26:40 +02:00
committed by GitHub
parent 60511a3222
commit 646def51e0
13 changed files with 22 additions and 16 deletions

View File

@@ -699,7 +699,7 @@ class GlobalProposalHistMaker: public CQHistMaker {
this->work_set_.insert(this->work_set_.end(), this->fsplit_set_.begin(),
this->fsplit_set_.end());
XGBOOST_PARALLEL_SORT(this->work_set_.begin(), this->work_set_.end(),
std::less<decltype(this->work_set_)::value_type>{});
std::less<>{});
this->work_set_.resize(
std::unique(this->work_set_.begin(), this->work_set_.end()) - this->work_set_.begin());