src/Handles.h
changeset 191 9d17f29fe16a
parent 174 e718b56aba78
child 195 c1ba166f3fc4
     1.1 --- a/src/Handles.h	Sun Sep 16 21:59:26 2012 -0700
     1.2 +++ b/src/Handles.h	Sun Sep 16 22:49:54 2012 -0700
     1.3 @@ -129,6 +129,11 @@
     1.4          return thing_;
     1.5      }
     1.6  
     1.7 +    Local &operator =(const Local &other) {
     1.8 +        thing_ = other.thing_;
     1.9 +        return *this;
    1.10 +    }
    1.11 +
    1.12    private:
    1.13      // Disallow heap allocation.
    1.14      void *operator new(size_t size);
    1.15 @@ -136,7 +141,6 @@
    1.16  
    1.17      // Disallow copy construction.
    1.18      Local(const Local<T> &other);
    1.19 -    Local &operator =(const Local &other);
    1.20  };
    1.21  
    1.22  // A ScopedRoot is a special kind of handle for storing references on the