artyom-beilis / cppcms

CppCMS Framework
Other
443 stars 107 forks source link

Fix #22: This should make looping over temporaries work #58

Open idkCpp opened 5 years ago

idkCpp commented 5 years ago

This implements the solution proposed in #22 but with the new insight about double parens.

I also added a helper_scope_block in the tmpl_cc which is used by the foreach block to scope the variable closely to the for loop.