Skip to content

Commit 21648d4

Browse files
committed
Update regression test results, and clean up a Clang -Wall -Wextra warning
1 parent 5d44e44 commit 21648d4

4 files changed

+2
-4
lines changed

regression-tests/mixed-ufcs-multiple-template-arguments.cpp2

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,4 @@ main: () -> int = {
1919

2020
x: X = test_string;
2121
std::cout << x.substr<4,8>() << "\n";
22-
// for now this should not be UFCS-ized because of the multiple template arguments
2322
}

regression-tests/test-results/mixed-function-expression-with-pointer-capture.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
std::string y { "\n" };
2424
std::ranges::for_each( view, [_0 = (&y)](auto const& x){
25-
std::cout << (*cpp2::assert_not_null((_0))).c_str() << x << *cpp2::assert_not_null(_0);
25+
std::cout << CPP2_UFCS_0(c_str, (*cpp2::assert_not_null((_0)))) << x << *cpp2::assert_not_null(_0);
2626
} );
2727

2828
auto callback { [](auto& x) { return x += "-ish"; } };

regression-tests/test-results/mixed-ufcs-multiple-template-arguments.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,5 @@ struct X {
2929

3030
X x { test_string };
3131
std::cout << CPP2_UFCS_TEMPLATE_0(substr, (<4,8>), std::move(x)) << "\n";
32-
// for now this should not be UFCS-ized because of the multiple template arguments
3332
}
3433

source/parse.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1547,7 +1547,7 @@ class parser
15471547
return {};
15481548
}
15491549
n->cap_grp = current_capture_groups.back();
1550-
n->cap_grp->add({n.get()});
1550+
n->cap_grp->add(n.get());
15511551
}
15521552

15531553
auto term = postfix_expression_node::term{&curr()};

0 commit comments

Comments
 (0)