]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/regex/example/snippets/regex_grep_example_3.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / regex / example / snippets / regex_grep_example_3.cpp
index 02aaa72402a7a3bfe9d873b809643b8d2a5895e2..9097dfda6cf08baac931898278deffc0bea07f29 100644 (file)
@@ -17,9 +17,9 @@
   *                using a bound member function callback.
   */
 
+#include <boost/regex.hpp>
 #include <string>
 #include <map>
-#include <boost/regex.hpp>
 #include <functional>
 #include <boost/detail/workaround.hpp>
 
@@ -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,