Chromium Code Reviews| Index: base/scoped_generic.h |
| diff --git a/base/scoped_generic.h b/base/scoped_generic.h |
| index da42609e5c484cefc5024f9968f836ea0292eecc..4fad2ceb8e09863a073d8165e3b93e4276599f93 100644 |
| --- a/base/scoped_generic.h |
| +++ b/base/scoped_generic.h |
| @@ -92,6 +92,11 @@ class ScopedGeneric { |
| FreeIfNecessary(); |
| } |
| + ScopedGeneric& operator=(ScopedGeneric<T, Traits>&& rhs) { |
|
danakj
2015/03/10 20:29:13
If we're going to add rvalue references we should
Robert Sesek
2015/03/10 20:51:15
OK, replaced the emulated move with full C++11 mov
|
| + reset(rhs.release()); |
| + return *this; |
| + } |
| + |
| // Frees the currently owned object, if any. Then takes ownership of a new |
| // object, if given. Self-resets are not allowd as on scoped_ptr. See |
| // http://crbug.com/162971 |