Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2349)

Unified Diff: Source/wtf/RawPtr.h

Issue 864753005: Oilpan: restrict implicit RawPtr<U> conversions; U must be T-convertible. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/RawPtr.h
diff --git a/Source/wtf/RawPtr.h b/Source/wtf/RawPtr.h
index 3175c1e2ffa9debb97c46334b7dc1556763327a9..758bb12c14d711e34251e5366862a1f31ff9b672 100644
--- a/Source/wtf/RawPtr.h
+++ b/Source/wtf/RawPtr.h
@@ -35,6 +35,7 @@
#include <stdint.h>
#include "wtf/HashTableDeletedValueType.h"
+#include "wtf/TypeTraits.h"
// RawPtr is a simple wrapper for a raw pointer that provides the
// interface (get, clear) of other pointer types such as RefPtr,
@@ -63,7 +64,7 @@ public:
}
template<typename U>
- RawPtr(const RawPtr<U>& other)
+ RawPtr(const RawPtr<U>& other, EnsurePtrConvertibleArgDecl(U, T))
: m_ptr(other.get())
{
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698