]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/spirit/example/qi/actions.cpp
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / boost / libs / spirit / example / qi / actions.cpp
index c53797037ab9a7114c24ef98314fc610ca811f9d..7735c2587532ebe19179348ec4da3d04ee7e5780 100644 (file)
@@ -7,7 +7,7 @@
 #include <boost/config/warning_disable.hpp>
 #include <boost/spirit/include/qi.hpp>
 #include <boost/lambda/lambda.hpp>
-#include <boost/bind.hpp>
+#include <boost/bind/bind.hpp>
 
 #include <iostream>
 
@@ -76,6 +76,7 @@ int main()
     { // example using boost.bind with a plain function
 
         char const *first = "{44}", *last = first + std::strlen(first);
+        using boost::placeholders::_1;
         //[tutorial_attach_actions3
         parse(first, last, '{' >> int_[boost::bind(&print, _1)] >> '}');
         //]
@@ -84,6 +85,7 @@ int main()
     { // example using boost.bind with a member function
 
         char const *first = "{44}", *last = first + std::strlen(first);
+        using boost::placeholders::_1;
         //[tutorial_attach_actions4
         writer w;
         parse(first, last, '{' >> int_[boost::bind(&writer::print, &w, _1)] >> '}');