File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4250,8 +4250,8 @@ auto autodiff(meta::type_declaration& t) -> void
4250
4250
CPP2_UFCS (error)(m, " temporary alpha limitation: the addition's right-hand side '" + cpp2::to_string (rhs) + " ' must be a parameter or return name" );
4251
4251
}
4252
4252
4253
- line1 += " " + cpp2::to_string (lhs) + " * " + cpp2::to_string (rhs) + " _d + " + cpp2::to_string (rhs) + " * " + cpp2::to_string (lhs ) + " _d;" ;
4254
- line2 += " " + cpp2::to_string (cpp2::move (lhs)) + " * " + cpp2::to_string (cpp2::move (rhs)) + " ;" ;
4253
+ line1 += " " + cpp2::to_string (lhs) + " _d + " + cpp2::to_string (rhs) + " _d;" ;
4254
+ line2 += " " + cpp2::to_string (cpp2::move (lhs)) + " + " + cpp2::to_string (cpp2::move (rhs)) + " ;" ;
4255
4255
4256
4256
diff += cpp2::move (line1) + cpp2::move (line2);
4257
4257
Original file line number Diff line number Diff line change @@ -2205,8 +2205,8 @@ autodiff: (inout t: meta::type_declaration) =
2205
2205
m.error( "temporary alpha limitation: the addition's right-hand side '(rhs)$' must be a parameter or return name");
2206
2206
}
2207
2207
2208
- line1 += "(lhs)$ * (rhs)$ _d + (rhs)$ * (lhs )$_d;";
2209
- line2 += "(lhs)$ * (rhs)$;";
2208
+ line1 += "(lhs)$_d + (rhs)$_d;";
2209
+ line2 += "(lhs)$ + (rhs)$;";
2210
2210
2211
2211
diff += line1 + line2;
2212
2212
You can’t perform that action at this time.
0 commit comments