Skip to content

Commit

Permalink
xcode.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Sep 24, 2021
1 parent b2737fc commit e28cb06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/cpp/predictor/test_predictor.cc
Expand Up @@ -389,7 +389,9 @@ void TestSparsePrediction(float sparsity, std::string predictor) {
}

learner->SetParam("predictor", "cpu_predictor");
auto dense = std::make_shared<data::DenseAdapter>(with_nan.data(), kRows, kCols);
// Xcode_12.4 doesn't compile with `std::make_shared`.
auto dense = std::shared_ptr<data::DenseAdapter>(
new data::DenseAdapter(with_nan.data(), kRows, kCols));
HostDeviceVector<float> *p_dense_predt;
learner->InplacePredict(dmlc::any(dense), nullptr, PredictionType::kValue,
std::numeric_limits<float>::quiet_NaN(), &p_dense_predt,
Expand Down

0 comments on commit e28cb06

Please sign in to comment.