<div class="gmail_quote">On Wed, Sep 1, 2010 at 01:24, Joel Christensen <span dir="ltr">&lt;<a href="mailto:joelcnz@gmail.com">joelcnz@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Thanks for the fix up Philippe.<br>
<br>
Just a little note. Where it says &#39;DynMethod m&#39;, you can put &#39;auto m&#39;, but I&#39;m wondering is it some times clearer to have the class name even though &#39;auto&#39; works.<br>
</blockquote></div><br>It depends on what you prefer. auto adds flexibility: if you use auto a lot, you can change the &#39;typed&#39; parts of your code and the parts with auto will likely stay the same, propagating the change without hiccup, which is well and good. But you also loose sight of what the &#39;current&#39; type is. The compiler knows it perfectly well, though, and you can count on static typing to help you when it can.<br>
<br>Personally, I&#39;m a bit leery of using auto in complex, recursive, templated code: not so long ago, auto regularly created nasty forward declaration errors. I think some were squashed recently, but I&#39;m still testing the water here. <br>