Remove type check for solaris. (#6606)
This commit is contained in:
parent
3e343159ef
commit
a018028471
@ -10,10 +10,6 @@ namespace xgboost {
|
|||||||
namespace gbm {
|
namespace gbm {
|
||||||
|
|
||||||
void GBLinearModel::SaveModel(Json* p_out) const {
|
void GBLinearModel::SaveModel(Json* p_out) const {
|
||||||
using WeightType = std::remove_reference<decltype(std::declval<decltype(weight)>().back())>::type;
|
|
||||||
using JsonFloat = Number::Float;
|
|
||||||
static_assert(std::is_same<WeightType, JsonFloat>::value,
|
|
||||||
"Weight type should be of the same type with JSON float");
|
|
||||||
auto& out = *p_out;
|
auto& out = *p_out;
|
||||||
|
|
||||||
size_t const n_weights = weight.size();
|
size_t const n_weights = weight.size();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user