Commit 0cf480ae authored by neverlord's avatar neverlord

renamed pmatch_each to match_each

parent b19ea13a
...@@ -130,7 +130,7 @@ int main(int argc, char** argv) ...@@ -130,7 +130,7 @@ int main(int argc, char** argv)
} }
); );
pmatch_each(argv + 1, argv + argc, [](char const* cstr) { return split(cstr, '='); }) match_each(argv + 1, argv + argc, [](char const* cstr) { return split(cstr, '='); })
( (
on_arg_match >> [](std::string const& key, std::string const& value) on_arg_match >> [](std::string const& key, std::string const& value)
{ {
......
...@@ -303,7 +303,7 @@ size_t test__match() ...@@ -303,7 +303,7 @@ size_t test__match()
/*, /*,
int pmatches = 0; int pmatches = 0;
using std::placeholders::_1; using std::placeholders::_1;
pmatch_each(vec2.begin(), vec2.end(), std::bind(split, _1, '=')) match_each(vec2.begin(), vec2.end(), std::bind(split, _1, '='))
( (
on("a", val<string>) >> [&](string const& value) on("a", val<string>) >> [&](string const& value)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment