mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-19 06:53:36 +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_;
|
std::function<bool(const T&, const T&)> compare_cb_;
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#if defined(_MSC_VER) || defined(__APPLE__)
|
||||||
// msvc does not have ::data() in vector<bool>,
|
// msvc stl/libc++ does not have ::data() in vector<bool>,
|
||||||
// so we add custom specialization
|
// so we add custom specialization
|
||||||
template <>
|
template <>
|
||||||
class GenericVector<bool> : public std::vector<bool> {};
|
class GenericVector<bool> : public std::vector<bool> {};
|
||||||
|
Loading…
Reference in New Issue
Block a user