<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/4.6.6">
</HEAD>
<BODY>
On Thu, 2014-01-02 at 13:12 -0800, Geoffrey Garen wrote:<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>
I think an appropriate style guideline for “auto” would say something like:
- Use “auto" to declare a disgusting templated iterator type in a loop
- Use “auto… ->" to define a template-dependent return type in a class template
- In all other cases, use an explicit type declaration
</PRE>
</BLOCKQUOTE>
<BR>
It would be nice if we could use this with Type::create() functions too, like:<BR>
<BR>
auto track = AudioTrackPrivateGStreamer::create(...);<BR>
<BR>
Unfortunately the type would be PassRefPtr, not RefPtr, which would probably not be what we want. Maybe we could do it by just removing PassRefPtr and adding a move constructor to RefPtr?
</BODY>
</HTML>