Unreviewed, attempt to fix Windows build
authorutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Jul 2017 10:11:22 +0000 (10:11 +0000)
committerutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Jul 2017 10:11:22 +0000 (10:11 +0000)
https://bugs.webkit.org/show_bug.cgi?id=174366

* wtf/FastMalloc.h:
(WTF::operator==):
(WTF::operator!=):
(WTF::FastAllocator::operator==): Deleted.
(WTF::FastAllocator::operator!=): Deleted.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@219386 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WTF/ChangeLog
Source/WTF/wtf/FastMalloc.h

index 537558c..5e964af 100644 (file)
@@ -1,3 +1,14 @@
+2017-07-12  Yusuke Suzuki  <utatane.tea@gmail.com>
+
+        Unreviewed, attempt to fix Windows build
+        https://bugs.webkit.org/show_bug.cgi?id=174366
+
+        * wtf/FastMalloc.h:
+        (WTF::operator==):
+        (WTF::operator!=):
+        (WTF::FastAllocator::operator==): Deleted.
+        (WTF::FastAllocator::operator!=): Deleted.
+
 2017-07-11  Carlos Garcia Campos  <cgarcia@igalia.com>
 
         [GTK][WPE] Enable FILE_LOCK and implement lockFile and unlockFile
index d110fa2..df2755b 100644 (file)
@@ -124,11 +124,11 @@ public:
     {
         fastFree(pointer);
     }
+};
 
-    template<typename U> bool operator==(const FastAllocator<U>&) { return true; }
+template<typename T, typename U> bool operator==(const FastAllocator<T>&, const FastAllocator<U>&) { return true; }
+template<typename T, typename U> bool operator!=(const FastAllocator<T>&, const FastAllocator<U>&) { return false; }
 
-    template<typename U> bool operator!=(const FastAllocator<U>&) { return false; }
-};
 
 } // namespace WTF