Skip to content

Commit

Permalink
Fix regex.cpp test
Browse files Browse the repository at this point in the history
seems to have been a simple mistake, because this test isn't run by default, it was never caught. also, shouldn't compiles, somehow does.
  • Loading branch information
solvingj authored Feb 12, 2021
1 parent dc21ddb commit b16e870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/boost/all/test_package/regex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ int main(int argc, const char * const argv[])

std::vector<int> values;
for (int i = 1; i < argc; ++i) {
const std::string word(argv[i]);
const std::string line(argv[i]);
boost::smatch matches;
if (boost::regex_match(line, matches, pat))
std::cout << matches[2] << std::endl;
Expand Down

0 comments on commit b16e870

Please sign in to comment.