|
|
|
@ -194,9 +194,13 @@ struct CompileAssert { |
|
|
|
}; |
|
|
|
|
|
|
|
#if !defined(COMPILE_ASSERT) |
|
|
|
#if __cplusplus >= 201103L |
|
|
|
#define COMPILE_ASSERT(expr, msg) static_assert(expr, #msg) |
|
|
|
#else |
|
|
|
#define COMPILE_ASSERT(expr, msg) \ |
|
|
|
typedef CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1] |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
} // namespace phonenumbers |
|
|
|
} // namespace i18n |
|
|
|
|