Title: [215538] trunk/Source/WTF
- Revision
- 215538
- Author
- [email protected]
- Date
- 2017-04-19 16:21:19 -0700 (Wed, 19 Apr 2017)
Log Message
Vector.h: error: 'auto' not allowed in lambda parameter
<https://webkit.org/b/171010>
<rdar://problem/31716076>
Reviewed by Saam Barati.
* wtf/Vector.h:
(WTF::removeRepeatedElements): Replace 'auto' with a specific
type, 'T', based on a Vector<> template type.
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (215537 => 215538)
--- trunk/Source/WTF/ChangeLog 2017-04-19 23:13:31 UTC (rev 215537)
+++ trunk/Source/WTF/ChangeLog 2017-04-19 23:21:19 UTC (rev 215538)
@@ -1,3 +1,15 @@
+2017-04-19 David Kilzer <[email protected]>
+
+ Vector.h: error: 'auto' not allowed in lambda parameter
+ <https://webkit.org/b/171010>
+ <rdar://problem/31716076>
+
+ Reviewed by Saam Barati.
+
+ * wtf/Vector.h:
+ (WTF::removeRepeatedElements): Replace 'auto' with a specific
+ type, 'T', based on a Vector<> template type.
+
2017-04-19 Ryan Haddad <[email protected]>
Unreviewed, rolling out r215518.
Modified: trunk/Source/WTF/wtf/Vector.h (215537 => 215538)
--- trunk/Source/WTF/wtf/Vector.h 2017-04-19 23:13:31 UTC (rev 215537)
+++ trunk/Source/WTF/wtf/Vector.h 2017-04-19 23:21:19 UTC (rev 215538)
@@ -1522,10 +1522,10 @@
return newSize;
}
-template<typename VectorType>
-size_t removeRepeatedElements(VectorType& vector)
+template<typename T, size_t inlineCapacity, typename OverflowHandler, size_t minCapacity>
+size_t removeRepeatedElements(Vector<T, inlineCapacity, OverflowHandler, minCapacity>& vector)
{
- return removeRepeatedElements(vector, [] (auto& a, auto& b) { return a == b; });
+ return removeRepeatedElements(vector, [] (T& a, T& b) { return a == b; });
}
} // namespace WTF
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes