From b9cad50387f7054fc350f1b49b3cfe4c808c23d4 Mon Sep 17 00:00:00 2001 From: Daniela Engert Date: Sun, 14 May 2017 16:37:59 +0200 Subject: [PATCH] Conditionally replace deprecated/removed C++98 std::bind1st by std::bind. Signed-off-by: Daniela Engert --- example/snippets/regex_grep_example_3.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/example/snippets/regex_grep_example_3.cpp b/example/snippets/regex_grep_example_3.cpp index 02aaa724..5bb3fd0a 100644 --- a/example/snippets/regex_grep_example_3.cpp +++ b/example/snippets/regex_grep_example_3.cpp @@ -89,6 +89,11 @@ void class_index::IndexClasses(const std::string& file) start, end, expression); +#elif defined(BOOST_NO_CXX98_BINDERS) + boost::regex_grep(std::bind(&class_index::grep_callback, this, std::placeholders::_1), + start, + end, + expression); #else boost::regex_grep(std::bind1st(std::mem_fun(&class_index::grep_callback), this), start,