Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home for chromium.org
« Groups Home
Message from discussion pass_scoped_ptr [Was: [chromium-dev] scoped_ptr<>::reset]
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Darin Fisher  
View profile  
 More options Nov 12 2012, 6:27 pm
From: Darin Fisher <da...@chromium.org>
Date: Mon, 12 Nov 2012 15:27:20 -0800
Local: Mon, Nov 12 2012 6:27 pm
Subject: pass_scoped_ptr [Was: [chromium-dev] scoped_ptr<>::reset]

[Fixing subject to reflect forking of thread.]

Are you familiar with the .Pass() method?  How is that deficient?  It seems
superior to PassOwnPtr since it is clearer when you are giving up the
pointer and "nulling out" the container.

-Darin

On Mon, Nov 12, 2012 at 3:22 PM, Alexandre Elias <ael...@google.com> wrote:
> While we're on the topic of scoped_ptr improvements, is there interest in
> introducing a pass_scoped_ptr type?  As it stands, it's dangerous to pass
> around scoped_ptrs as parameters due to the problem described in
> http://www.webkit.org/coding/RefPtr.html (section "PassRefPtr").  I ran
> into a subtle bug caused by this just last week.

> --
> Alex

> --
> Chromium Developers mailing list: chromium-...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.