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

time-shift
Sébastien Villemot 2010-04-15 17:46:05 +02:00
parent 5b851c8c76
commit b2220c0346
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

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