Try to fix macos build.

This commit is contained in:
Egor Pugin 2020-12-26 13:40:27 +03:00 committed by GitHub
parent 83544566af
commit 560560eb35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -309,8 +309,8 @@ class GenericVector : public std::vector<T> {
std::function<bool(const T&, const T&)> compare_cb_;
};
#ifdef _MSC_VER
// msvc does not have ::data() in vector<bool>,
#if defined(_MSC_VER) || defined(__APPLE__)
// msvc stl/libc++ does not have ::data() in vector<bool>,
// so we add custom specialization
template <>
class GenericVector<bool> : public std::vector<bool> {};