<div dir="ltr"><div><div>As I was working on captures within Generic Lambdas, I thought it would be nice to refactor the very long function : tryCaptureVariable. Please let me know if you think this refactoring is useful and if you have any suggestions for improving the refactoring.<br>
<br></div>Also, I fixed a bug in my initial TemplateParameterDepth patch - the Depth counter was getting incremented when it shouldn't have (that is for a non-class template) in delayed-template parsing mode.  I included a test that previously asserted, and now compiles and behaves as it should.<br>
<br></div>Thank you in advance for the feedback.<br><div><div><br clear="all"><div><div>Faisal Vali<br><br></div>
</div></div></div></div>