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

Unified Diff: Source/wtf/TypeTraits.h

Issue 23531003: Type check when upcasting PassOwnPtr/PassOwnArrayPtr to avoid possible function call ambiguousness (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 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
« Source/wtf/PassRefPtr.h ('K') | « Source/wtf/RefPtr.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/TypeTraits.h
diff --git a/Source/wtf/TypeTraits.h b/Source/wtf/TypeTraits.h
index 45e0714b827aef60d8ff0d9656b36f93f7d12b8f..1a98503638c8f211a313024b9cc915af7b30711c 100644
--- a/Source/wtf/TypeTraits.h
+++ b/Source/wtf/TypeTraits.h
@@ -247,10 +247,6 @@ namespace WTF {
#define EnsurePtrConvertibleType(ReturnType, From, To) \
typename EnableIf<IsPointerConvertible<From, To>::Value, ReturnType>::Type
Nico 2013/08/29 19:58:47 …here it is, right? I don't see the value in remov
Nico 2013/08/31 20:51:34 Any thoughts on this comment?
-#define EnsurePtrConvertibleArgDecl(From, To) \
- EnsurePtrConvertibleType(bool, From, To) = true
-#define EnsurePtrConvertibleArgDefn(From, To) \
- EnsurePtrConvertibleType(bool, From, To)
} // namespace WTF
« Source/wtf/PassRefPtr.h ('K') | « Source/wtf/RefPtr.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698