mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-12 01:50:37 +01:00
- Windows: 10.0.19041 SDK is now required. - macOS: 10.15.1 SDK (at least Xcode 11.2) is now required. - Remove CefMediaSource::IsValid and CefMediaSink::IsValid which would always return true.
26 lines
1006 B
Diff
26 lines
1006 B
Diff
diff --git base/values.cc base/values.cc
|
|
index 5f5657935d92..8e4b33a1eb29 100644
|
|
--- base/values.cc
|
|
+++ base/values.cc
|
|
@@ -29,20 +29,6 @@
|
|
|
|
namespace base {
|
|
|
|
-// base::Value must be standard layout to guarantee that writing to
|
|
-// |bool_type_| then reading |type_| is defined behaviour. See:
|
|
-//
|
|
-// [class.union]:
|
|
-// If a standard-layout union contains several standard-layout structs that
|
|
-// share a common initial sequence (9.2), and if an object of this
|
|
-// standard-layout union type contains one of the standard-layout structs,
|
|
-// it is permitted to inspect the common initial sequence of any of
|
|
-// standard-layout struct members;
|
|
-//
|
|
-static_assert(std::is_standard_layout<Value>::value,
|
|
- "base::Value should be a standard-layout C++ class in order "
|
|
- "to avoid undefined behaviour in its implementation!");
|
|
-
|
|
static_assert(sizeof(Value::DoubleStorage) == sizeof(double),
|
|
"The double and DoubleStorage types should have the same size");
|
|
|