Comment 8 for bug 1203629

Revision history for this message
SirVer (sirver) wrote :

this should work:

for (FlagJob& tmp_flagjobs: m_flag_jobs)
  tmp_flagjobs.request->set_economy(e);

no need to dereference tmp_flagjobs in your first example. And I think const does not work here as ->set_economy() cannot work on a const Request.