DescriptionAllow icomplete types in scoped_refptr<T>.
This CL hides T::AddRef/Release calls behind a function that is only
accessed during creation / pointer assignment. That allows passing
around scoped_refptrs with incomplete (i.e. forwarded) types.
The downsides are that scoped_refptr is now two pointers wide, and
there is one more level of indirection when calling AddRef / Release.
Patch Set 1 #Patch Set 2 : Rebase #Patch Set 3 : Fixes #Patch Set 4 : Release can delete this #
Messages
Total messages: 17 (17 generated)
|