diff --git a/classic/example/fundamental/bind.cpp b/classic/example/fundamental/bind.cpp index f38e9c231..2d6f3af41 100644 --- a/classic/example/fundamental/bind.cpp +++ b/classic/example/fundamental/bind.cpp @@ -15,7 +15,7 @@ // /////////////////////////////////////////////////////////////////////////////// #include -#include +#include #include #include #include @@ -39,6 +39,7 @@ public: bool parse(char const* str) { + using namespace boost::placeholders; return BOOST_SPIRIT_CLASSIC_NS::parse(str, // Begin grammar diff --git a/classic/test/actor/push_back_test.cpp b/classic/test/actor/push_back_test.cpp index ee83c19ac..2635c99dd 100644 --- a/classic/test/actor/push_back_test.cpp +++ b/classic/test/actor/push_back_test.cpp @@ -19,7 +19,6 @@ #include #include #include -#include #include #include diff --git a/example/karma/actions.cpp b/example/karma/actions.cpp index d5b5efe29..9899743e4 100644 --- a/example/karma/actions.cpp +++ b/example/karma/actions.cpp @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include #include @@ -89,6 +89,7 @@ int main() } { // example using plain function with boost.bind + using namespace boost::placeholders; std::string generated; std::back_insert_iterator outiter(generated); @@ -100,6 +101,7 @@ int main() } { // example using member function with boost.bind + using namespace boost::placeholders; std::string generated; std::back_insert_iterator outiter(generated); diff --git a/example/lex/word_count_functor.cpp b/example/lex/word_count_functor.cpp index f1969aac3..184233a65 100644 --- a/example/lex/word_count_functor.cpp +++ b/example/lex/word_count_functor.cpp @@ -52,7 +52,7 @@ #include //[wcf_includes #include -#include +#include #include //] @@ -162,6 +162,7 @@ int main(int argc, char* argv[]) // tokenize the given string, the bound functor gets invoked for each of // the matched tokens + using boost::placeholders::_1; char const* first = str.c_str(); char const* last = &first[str.size()]; bool r = lex::tokenize(first, last, word_count_functor, diff --git a/example/qi/actions.cpp b/example/qi/actions.cpp index c53797037..7735c2587 100644 --- a/example/qi/actions.cpp +++ b/example/qi/actions.cpp @@ -7,7 +7,7 @@ #include #include #include -#include +#include #include @@ -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)] >> '}'); diff --git a/test/karma/actions.cpp b/test/karma/actions.cpp index 2f3623e58..3ccd71b76 100644 --- a/test/karma/actions.cpp +++ b/test/karma/actions.cpp @@ -14,7 +14,7 @@ #include #include #include -#include +#include #include #include @@ -73,6 +73,7 @@ int main() } { + using namespace boost::placeholders; BOOST_TEST(test("42", int_[boost::bind(&read1, _1)])); BOOST_TEST(test_delimited("42 ", int_[boost::bind(&read1, _1)], ' ')); BOOST_TEST(test("42", int_[boost::bind(&read2, _1, _2)])); @@ -108,6 +109,7 @@ int main() } { + using namespace boost::placeholders; BOOST_TEST(test("{42}", '{' << int_[boost::bind(&read1, _1)] << '}')); BOOST_TEST(test_delimited("{ 42 } ", '{' << int_[boost::bind(&read1, _1)] << '}', ' ')); diff --git a/test/qi/actions.cpp b/test/qi/actions.cpp index 9bd4184d9..8a24db1b5 100644 --- a/test/qi/actions.cpp +++ b/test/qi/actions.cpp @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include int x = 0; @@ -89,6 +89,7 @@ int main() } { + using boost::placeholders::_1; char const *s1 = "{42}", *e1 = s1 + std::strlen(s1); qi::parse(s1, e1, '{' >> int_[boost::bind(&fun1, _1)] >> '}'); }