mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-13 07:59:04 +08:00
Try to fix macos build.
This commit is contained in:
parent
83544566af
commit
560560eb35
@ -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> {};
|
||||
|
Loading…
Reference in New Issue
Block a user