| Index: base/macros.h
|
| diff --git a/base/macros.h b/base/macros.h
|
| index 65c7749367fc91a39fd7fae9393e99677abbda95..4adbbb075509d037934fa5e9f24eafe2c05b3ea1 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)
|
| -
|
| // 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
|
|
|