From b397d64c968dd9bde14c28cddfa0263236bbc303 Mon Sep 17 00:00:00 2001 From: Philip Hyunsu Cho Date: Wed, 7 Sep 2022 12:25:59 -0700 Subject: [PATCH] Drop use of deleted virtual function to support older MacOS (#8226) * Support older MacOS * Update json.h --- include/xgboost/json.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/xgboost/json.h b/include/xgboost/json.h index 473b0f1d5..74bab68d9 100644 --- a/include/xgboost/json.h +++ b/include/xgboost/json.h @@ -58,7 +58,9 @@ class Value { virtual Json& operator[](int ind); virtual bool operator==(Value const& rhs) const = 0; +#if !defined(__APPLE__) virtual Value& operator=(Value const& rhs) = delete; +#endif // !defined(__APPLE__) std::string TypeStr() const;