<div><div class="gmail_quote">On Thu, Jan 28, 2010 at 10:16 AM, Jeff Baumes <span dir="ltr"><<a href="mailto:jeff.baumes@kitware.com">jeff.baumes@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On Thu, Jan 28, 2010 at 10:00 AM, Will Schroeder<br>
<div class="im"><<a href="mailto:will.schroeder@kitware.com">will.schroeder@kitware.com</a>> wrote:<br>
</div><div class="im">> Jeff can you summarize the proposed solutions (assuming we think we've<br>
> covered the bases) and let's take a vote on this. I want to keep my inbox<br>
> clear :-(<br>
<br>
</div>1. Keep things the way they are:<br>
vtkSmartPointer<vtkClass> c = vtkSmartPointer<vtkClass>::New();<br>
<br>
2. Add new constructor to vtkSmartPointer that takes a bool and if<br>
true creates an instance of the object. Code would look like:<br>
vtkSmartPointer<vtkClass> c(true);<br>
<br>
3. Create typedefs for vtkSmartPointer<vtkClass>:<br>
vtkClassSP c = vtkClassSP::New();<br>
<br>
4. Make a new vtkLocalPointer type that is the same as vtkSmartPointer<br>
but always creates an instance of the object.<br>
vtkLocalPointer<vtkClass> c;<br>
<br>
Unfortunately our inboxes won't be clear until everyone responds with<br>
a vote (I'd maybe give it till 12pm eastern time). We can take it to<br>
the ARB if there is no clear consensus.<br>
<font color="#888888"><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" color="#888888"><br></font></font></font></blockquote><div><br></div>I vote for 3 (even though it uses an abbreviation in violation of one of our conventions)<div>
<br></div><div>Or 1 -- keep things the way they are.</div><div><br></div><div><br></div><div>David C.</div><div><br></div><div> </div></div></div>