Title: [156516] trunk/Source/WTF
- Revision
- 156516
- Author
- [email protected]
- Date
- 2013-09-26 16:37:39 -0700 (Thu, 26 Sep 2013)
Log Message
[Windows] Work around missing C++11 features of MSVC by providing an implementation for
std::is_trivially_destructible based on the existing std::has_trivial_destructor.
Rubber-stamped by Anders Carlsson.
* wtf/StdLibExtras.h: Add implementation for is_trivially_destructable for MSVC 2010 and prior.
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (156515 => 156516)
--- trunk/Source/WTF/ChangeLog 2013-09-26 23:36:09 UTC (rev 156515)
+++ trunk/Source/WTF/ChangeLog 2013-09-26 23:37:39 UTC (rev 156516)
@@ -1,3 +1,12 @@
+2013-09-26 Brent Fulgham <[email protected]>
+
+ [Windows] Work around missing C++11 features of MSVC by providing an implementation for
+ std::is_trivially_destructible based on the existing std::has_trivial_destructor.
+
+ Rubber-stamped by Anders Carlsson.
+
+ * wtf/StdLibExtras.h: Add implementation for is_trivially_destructable for MSVC 2010 and prior.
+
2013-09-26 Anders Carlsson <[email protected]>
Remove needsDestruction from vector and hash traits
Modified: trunk/Source/WTF/wtf/StdLibExtras.h (156515 => 156516)
--- trunk/Source/WTF/wtf/StdLibExtras.h 2013-09-26 23:36:09 UTC (rev 156515)
+++ trunk/Source/WTF/wtf/StdLibExtras.h 2013-09-26 23:37:39 UTC (rev 156516)
@@ -305,6 +305,14 @@
return location;
}
+#if defined(_MSC_VER) && _MSC_VER < 1700
+// Work-around for Pre-C++11 syntax in MSVC 2010 and prior
+namespace std {
+ template<class T> struct is_trivially_destructible {
+ static const bool value = std::has_trivial_destructor<T>::value;
+ };
+}
+#endif
// This adds various C++14 features for versions of the STL that may not yet have them.
namespace std {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes