Chromium Code Reviews| Index: Source/platform/heap/Handle.h |
| diff --git a/Source/platform/heap/Handle.h b/Source/platform/heap/Handle.h |
| index 6a46cef73a1b9bbf1ee303b986977ceb9d7d81f2..203780194d341006cc438cfc192b83c1c6030215 100644 |
| --- a/Source/platform/heap/Handle.h |
| +++ b/Source/platform/heap/Handle.h |
| @@ -552,7 +552,8 @@ public: |
| T* operator->() const { return m_raw; } |
| T& operator*() const { return *m_raw; } |
| - operator RawPtr<T>() const { return m_raw; } |
| + template<typename U> |
| + operator RawPtr<U>() const { return m_raw; } |
|
zerny-chromium
2014/06/04 09:28:18
Generalizing this operator causes ambiguity since
tkent
2014/06/05 00:22:27
Without this, we need to add dozens of .get() to c
|
| template<typename U> |
| Member& operator=(const Persistent<U>& other) |