<div dir="ltr">On Thu, Jan 31, 2013 at 3:18 PM, Vane, Edwin <span dir="ltr"><<a href="mailto:edwin.vane@intel.com" target="_blank">edwin.vane@intel.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I'm resuming work on the cpp11-migrate transform that introduces the auto type specifier. I've already implemented one option which is to replace all type specifiers that inherit from std::iterator or have std iterator traits. There are several other options though. For example, replace all type specifiers of a sufficient complexity (measured in character length or perhaps number of scope resolution operators).<br>

<br>
What behaviours would be most useful to you?<br></blockquote><div><br></div><div style>Replace all type specifiers that are redundant within the same statement. For example:</div><div style>MyClass *P = new MyClass(...);</div>
<div style>or</div><div style>MyClass *P = myFactory<MyClass>(...);</div><div style><br></div><div style>For the second one it might not be obvious any more whether it's really a "readability win", so I think in general this is a hard problem.</div>
<div style><br></div><div style>Cheers,</div><div style>/Manuel</div><div style> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
--<br>
Edwin Vane<br>
  Software Developer<br>
  Intel of Canada, Inc.<br>
<br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div></div>