We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
operator=
out
1 parent 923e0f3 commit a75816bCopy full SHA for a75816b
source/cppfront.cpp
@@ -4387,11 +4387,10 @@ class cppfront
4387
return;
4388
}
4389
4390
- assert(out_inits.empty());
4391
// Flush any possible remaining 'out' parameters (shouldn't be any...)
4392
- //for (auto& init : out_inits) {
4393
- // current_functions.back().prolog.statements.push_back(init);
4394
- //}
+ for (auto& init : out_inits) {
+ current_functions.back().prolog.statements.push_back(init + ";");
+ }
4395
4396
4397
// For a constructor, print the type name instead of the operator= function name
0 commit comments