You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Minor updates to compile cppfront and the new test cleanly using MSVC
And re-remove a few stray `;` that were removed as part of PR hsutter#911 and now cause errors because of the pedantic builds
I regenerated `reflect.h` and found two changes that weren't already in the PR, so committing those too
Also including the new test file's run against MSVC showing the five messages mentioned in the PR review, see PR review for more...
Copy file name to clipboardExpand all lines: source/reflect.h
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1352,7 +1352,7 @@ auto ordered_impl(
1352
1352
if (CPP2_UFCS(has_name)(mf, "operator<=>")) {
1353
1353
has_spaceship = true;
1354
1354
auto return_name {CPP2_UFCS(unnamed_return_type)(mf)};
1355
-
if (CPP2_UFCS(find)(return_name, ordering) == std::move(return_name).npos)
1355
+
if (CPP2_UFCS(find)(return_name, ordering) == return_name.npos)
1356
1356
{
1357
1357
CPP2_UFCS(error)(mf, "operator<=> must return std::" + cpp2::as_<std::string>(ordering));
1358
1358
}
@@ -1951,7 +1951,7 @@ auto print(cpp2::in<meta::type_declaration> t) -> void
1951
1951
&& !(CPP2_UFCS(arguments_were_used)(rtype))))
1952
1952
1953
1953
{
1954
-
error(name + " did not use its template arguments - did you mean to write '" + std::move(name) + " <" + CPP2_ASSERT_IN_BOUNDS(std::move(args), 0) + "> type' (with the spaces)?");
1954
+
error(name + " did not use its template arguments - did you mean to write '" + name + " <" + CPP2_ASSERT_IN_BOUNDS(std::move(args), 0) + "> type' (with the spaces)?");
0 commit comments