Index: base/macros.h |
diff --git a/base/macros.h b/base/macros.h |
index af1cb386afc32c3940c3866a3ec64f02796f5eff..47ac5a7dfd60e09533a7899919677399130b7a1f 100644 |
--- a/base/macros.h |
+++ b/base/macros.h |
@@ -55,24 +55,6 @@ |
template <typename T, size_t N> char (&ArraySizeHelper(T (&array)[N]))[N]; |
#define arraysize(array) (sizeof(ArraySizeHelper(array))) |
-// The COMPILE_ASSERT macro can be used to verify that a compile time |
-// expression is true. For example, you could use it to verify the |
-// size of a static array: |
-// |
-// COMPILE_ASSERT(arraysize(content_type_names) == CONTENT_NUM_TYPES, |
-// content_type_names_incorrect_size); |
-// |
-// or to make sure a struct is smaller than a certain size: |
-// |
-// COMPILE_ASSERT(sizeof(foo) < 128, foo_too_large); |
-// |
-// The second argument to the macro is the name of the variable. If |
-// the expression is false, most compilers will issue a warning/error |
-// containing the name of the variable. |
- |
-#undef COMPILE_ASSERT |
-#define COMPILE_ASSERT(expr, msg) static_assert(expr, #msg) |
Nico
2015/11/24 14:45:02
(maybe land the change to this file in a separate
|
- |
// bit_cast<Dest,Source> is a template function that implements the |
// equivalent of "*reinterpret_cast<Dest*>(&source)". We need this in |
// very low-level functions like the protobuf library and fast math |