mongodb: fix build (boost-1.62/NetBSD patch)

This commit is contained in:
Michael Gehring 2016-10-20 18:14:08 +02:00
parent c2c151df79
commit 37b3c91940
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
$NetBSD: patch-src_mongo_db_fts_unicode_string.cpp,v 1.1 2016/10/10 13:15:40 ryoon Exp $
* Fix build with boost 1.62.0
--- src/mongo/db/fts/unicode/string.cpp.orig 2016-09-26 12:10:04.000000000 +0000
+++ src/mongo/db/fts/unicode/string.cpp
@@ -274,7 +274,7 @@ bool String::substrMatch(const std::stri
// Case sensitive and diacritic sensitive.
return boost::algorithm::boyer_moore_search(
- haystack.begin(), haystack.end(), needle.begin(), needle.end()) != haystack.end();
+ haystack.begin(), haystack.end(), needle.begin(), needle.end()) != std::make_pair(haystack.end(), haystack.end());
}
} // namespace unicode