From 47635d073307004b4c69239791111be267cd8101 Mon Sep 17 00:00:00 2001 From: Vemund Handeland Date: Mon, 22 May 2017 15:39:45 +0200 Subject: [PATCH] Update icu.cpp Conditionally replace deprecated/removed C++98 std::bind2nd by std::bind --- src/icu.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/icu.cpp b/src/icu.cpp index 5d166a697..be6e5a1c4 100644 --- a/src/icu.cpp +++ b/src/icu.cpp @@ -430,7 +430,11 @@ icu_regex_traits::char_class_type icu_regex_traits::lookup_classname(const char_ icu_regex_traits::string_type icu_regex_traits::lookup_collatename(const char_type* p1, const char_type* p2) const { string_type result; +#ifdef BOOST_NO_CXX98_BINDERS + if(std::find_if(p1, p2, std::bind(std::greater< ::UChar32>(), std::placeholders::_1, 0x7f)) == p2) +#else if(std::find_if(p1, p2, std::bind2nd(std::greater< ::UChar32>(), 0x7f)) == p2) +#endif { #ifndef BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS std::string s(p1, p2);