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 ...@@ -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 ...@@ -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: ...@@ -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;
......
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