Hey,

I'm about to land a CL replacing SmartArrayPointer<T> with
std::unique_ptr<T[]> and SmartPointer<T> with std::unique_ptr<T>.

Both should be pretty similar, except for minor naming differences:

Reset -> reset
Detach -> release
is_empty -> std::unique_ptr::operator bool

The header that defines unique_ptr is <memory>

MSVS might complain about a deleted operator if you have add a unique_ptr
member to a class. In that case, you forgot to add
DISALLOW_COPY_AND_ASSIGN() to your class, or, if you actually want to copy
it around, you need to implement move constructors.

best
-jochen

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to