Title: [293148] trunk/Source/WTF
- Revision
- 293148
- Author
- [email protected]
- Date
- 2022-04-21 02:28:56 -0700 (Thu, 21 Apr 2022)
Log Message
REGRESSION(r292863): std::remove_cvref_t not defined in GCC9<
https://bugs.webkit.org/show_bug.cgi?id=239482
Reviewed by Žan Doberšek.
std::remove_cvref_t is only available since GCC9 onwards:
https://en.cppreference.com/w/cpp/compiler_support/20
* wtf/StdLibExtras.h: add remove_cvref_t to std namespace if not defined.
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (293147 => 293148)
--- trunk/Source/WTF/ChangeLog 2022-04-21 08:39:33 UTC (rev 293147)
+++ trunk/Source/WTF/ChangeLog 2022-04-21 09:28:56 UTC (rev 293148)
@@ -1,3 +1,15 @@
+2022-04-21 Diego Pino Garcia <[email protected]>
+
+ REGRESSION(r292863): std::remove_cvref_t not defined in GCC9<
+ https://bugs.webkit.org/show_bug.cgi?id=239482
+
+ Reviewed by Žan Doberšek.
+
+ std::remove_cvref_t is only available since GCC9 onwards:
+ https://en.cppreference.com/w/cpp/compiler_support/20
+
+ * wtf/StdLibExtras.h: add remove_cvref_t to std namespace if not defined.
+
2022-04-20 Chris Dumez <[email protected]>
Move true / false AtomStrings to a central location and reuse them
Modified: trunk/Source/WTF/wtf/StdLibExtras.h (293147 => 293148)
--- trunk/Source/WTF/wtf/StdLibExtras.h 2022-04-21 08:39:33 UTC (rev 293147)
+++ trunk/Source/WTF/wtf/StdLibExtras.h 2022-04-21 09:28:56 UTC (rev 293148)
@@ -605,6 +605,18 @@
#define WTFMove(value) std::move<WTF::CheckMoveParameter>(value)
+#if defined(__GLIBCXX__) && !defined(__cpp_lib_remove_cvref)
+namespace std {
+template <typename T>
+struct remove_cvref {
+ using type = typename std::remove_cv<typename std::remove_reference<T>::type>::type;
+};
+
+template <typename T>
+using remove_cvref_t = typename remove_cvref<T>::type;
+}
+#endif
+
using WTF::GB;
using WTF::KB;
using WTF::MB;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes