From d132933550dde9526da72d2bf72b12b83f11fad8 Mon Sep 17 00:00:00 2001 From: Jiaming Yuan Date: Sat, 16 Jan 2021 02:58:19 +0800 Subject: [PATCH] Remove type check for solaris. (#6610) --- src/gbm/gblinear_model.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/gbm/gblinear_model.cc b/src/gbm/gblinear_model.cc index a1c63b6f5..7e7024933 100644 --- a/src/gbm/gblinear_model.cc +++ b/src/gbm/gblinear_model.cc @@ -1,5 +1,5 @@ /*! - * Copyright 2019 by Contributors + * Copyright 2019-2021 by Contributors */ #include #include @@ -10,10 +10,6 @@ namespace xgboost { namespace gbm { void GBLinearModel::SaveModel(Json* p_out) const { - using WeightType = std::remove_reference().back())>::type; - using JsonFloat = Number::Float; - static_assert(std::is_same::value, - "Weight type should be of the same type with JSON float"); auto& out = *p_out; size_t const n_weights = weight.size();