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.
this should work:
for (FlagJob& tmp_flagjobs: m_flag_jobs) request- >set_economy( e);
tmp_flagjobs.
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.