Preprocessor: rename a function argument to avoid name conflict with standard error filestream
parent
5b851c8c76
commit
b2220c0346
|
@ -109,7 +109,7 @@ ShocksStatement::writeOutput(ostream &output, const string &basename) const
|
||||||
|
|
||||||
void
|
void
|
||||||
ShocksStatement::writeVarOrStdShock(ostream &output, var_and_std_shocks_type::const_iterator &it,
|
ShocksStatement::writeVarOrStdShock(ostream &output, var_and_std_shocks_type::const_iterator &it,
|
||||||
bool stderr) const
|
bool stddev) const
|
||||||
{
|
{
|
||||||
SymbolType type = symbol_table.getType(it->first);
|
SymbolType type = symbol_table.getType(it->first);
|
||||||
assert(type == eExogenous || symbol_table.isObservedVariable(it->first));
|
assert(type == eExogenous || symbol_table.isObservedVariable(it->first));
|
||||||
|
@ -127,10 +127,10 @@ ShocksStatement::writeVarOrStdShock(ostream &output, var_and_std_shocks_type::co
|
||||||
}
|
}
|
||||||
|
|
||||||
output << id << ", " << id << ") = ";
|
output << id << ", " << id << ") = ";
|
||||||
if (stderr)
|
if (stddev)
|
||||||
output << "(";
|
output << "(";
|
||||||
it->second->writeOutput(output);
|
it->second->writeOutput(output);
|
||||||
if (stderr)
|
if (stddev)
|
||||||
output << ")^2";
|
output << ")^2";
|
||||||
output << ";" << endl;
|
output << ";" << endl;
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,7 +60,7 @@ public:
|
||||||
private:
|
private:
|
||||||
const var_and_std_shocks_type var_shocks, std_shocks;
|
const var_and_std_shocks_type var_shocks, std_shocks;
|
||||||
const covar_and_corr_shocks_type covar_shocks, corr_shocks;
|
const covar_and_corr_shocks_type covar_shocks, corr_shocks;
|
||||||
void writeVarOrStdShock(ostream &output, var_and_std_shocks_type::const_iterator &it, bool stderr) const;
|
void writeVarOrStdShock(ostream &output, var_and_std_shocks_type::const_iterator &it, bool stddev) const;
|
||||||
void writeVarAndStdShocks(ostream &output) const;
|
void writeVarAndStdShocks(ostream &output) const;
|
||||||
void writeCovarOrCorrShock(ostream &output, covar_and_corr_shocks_type::const_iterator &it, bool corr) const;
|
void writeCovarOrCorrShock(ostream &output, covar_and_corr_shocks_type::const_iterator &it, bool corr) const;
|
||||||
void writeCovarAndCorrShocks(ostream &output) const;
|
void writeCovarAndCorrShocks(ostream &output) const;
|
||||||
|
|
Loading…
Reference in New Issue