Title: [169252] trunk/Source/WTF
Revision
169252
Author
[email protected]
Date
2014-05-22 23:45:30 -0700 (Thu, 22 May 2014)

Log Message

Add the partial specialization for VectorTraits<std::unique_ptr<P>>
https://bugs.webkit.org/show_bug.cgi?id=133083

Reviewed by Andreas Kling.

* wtf/VectorTraits.h: Like for RefPtr<P>, OwnPtr<P> and Ref<P>, the partial
specialization for VectorTraits<std::unique_ptr<P>> should exist and should
inherit from SimpleClassVector.

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (169251 => 169252)


--- trunk/Source/WTF/ChangeLog	2014-05-23 06:44:19 UTC (rev 169251)
+++ trunk/Source/WTF/ChangeLog	2014-05-23 06:45:30 UTC (rev 169252)
@@ -1,3 +1,14 @@
+2014-05-22  Zan Dobersek  <[email protected]>
+
+        Add the partial specialization for VectorTraits<std::unique_ptr<P>>
+        https://bugs.webkit.org/show_bug.cgi?id=133083
+
+        Reviewed by Andreas Kling.
+
+        * wtf/VectorTraits.h: Like for RefPtr<P>, OwnPtr<P> and Ref<P>, the partial
+        specialization for VectorTraits<std::unique_ptr<P>> should exist and should
+        inherit from SimpleClassVector.
+
 2014-05-20  Geoffrey Garen  <[email protected]>
 
         Rolled out <http://trac.webkit.org/changeset/166184>

Modified: trunk/Source/WTF/wtf/VectorTraits.h (169251 => 169252)


--- trunk/Source/WTF/wtf/VectorTraits.h	2014-05-23 06:44:19 UTC (rev 169251)
+++ trunk/Source/WTF/wtf/VectorTraits.h	2014-05-23 06:45:30 UTC (rev 169252)
@@ -75,6 +75,9 @@
     struct VectorTraits<OwnPtr<P>> : SimpleClassVectorTraits { };
 
     template<typename P>
+    struct VectorTraits<std::unique_ptr<P>> : SimpleClassVectorTraits { };
+
+    template<typename P>
     struct VectorTraits<Ref<P>> : SimpleClassVectorTraits { };
 
     template<>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to