Drop use of deleted virtual function to support older MacOS (#8226)

* Support older MacOS

* Update json.h
This commit is contained in:
Philip Hyunsu Cho 2022-09-07 12:25:59 -07:00 committed by GitHub
parent dc07137a2c
commit b397d64c96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;