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
I fixed it locally, I don't know if it breaks something else in the process.
In cppfront.h, line under 1628:
line 1624 // For an explicit 'forward' apply forwarding to correct identifier
assert (!current_args.empty());
if (current_args.back().pass == passing_style::forward) {
add_forward = current_args.back().ptoken == n.identifier;
line 1628 }
I have added :
// If explicit 'move' is used then don't add move
if (current_args.back().pass == passing_style::move) {
add_move = false;
}
Let me know if this works or not, I look forward to contributing more actively, but for the time being I'm familiarizing my self with the compiler code.
Let me know if this works or not, I look forward to contributing more actively, but for the time being I'm familiarizing my self with the compiler code.
I can't know, as I don't have working code.
Just lots of snippets compliant to the grammar.
Activity
HALL9kv0 commentedon May 4, 2023
I fixed it locally, I don't know if it breaks something else in the process.
In cppfront.h, line under 1628:
I have added :
Let me know if this works or not, I look forward to contributing more actively, but for the time being I'm familiarizing my self with the compiler code.
JohelEGP commentedon May 4, 2023
I can't know, as I don't have working code.
Just lots of snippets compliant to the grammar.
HALL9kv0 commentedon May 4, 2023
My apologies, I was referring to the contributors.
JohelEGP commentedon May 31, 2023
Now I can confirm that it works,
and there's just one change to existing tests:
JohelEGP commentedon Jul 26, 2023
An alternative Expected result
is a diagnostic saying that
xwill be moved,and thus the explicit
moveis redundant.JohelEGP commentedon Dec 14, 2023
This isn't true in a generic context.
So I expect
move xto always work in a generic context.