Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Let GOOGLE_COMPILE_ASSERT use static_assert if available.
The motivation is that gcc 4.8+ and clang trunk warn on unused local typedefs, which COMPILE_ASSERT adds. After this change, the warning will be happy at least in C++11 builds. static_assert also produces a slighly nicer diagnostic than the typedef method. google/re2@eb93e8b did the same change in re2.
- Loading branch information