Commit b2220c03 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Preprocessor: rename a function argument to avoid name conflict with standard error filestream

parent 5b851c8c
......@@ -109,7 +109,7 @@ ShocksStatement::writeOutput(ostream &output, const string &basename) const
void
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);
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 << ") = ";
if (stderr)
if (stddev)
output << "(";
it->second->writeOutput(output);
if (stderr)
if (stddev)
output << ")^2";
output << ";" << endl;
}
......
......@@ -60,7 +60,7 @@ public:
private:
const var_and_std_shocks_type var_shocks, std_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 writeCovarOrCorrShock(ostream &output, covar_and_corr_shocks_type::const_iterator &it, bool corr) const;
void writeCovarAndCorrShocks(ostream &output) const;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment