commit | eb93e8bc43ac8d05322fb3e9fc885898ad924f8a | [log] [tgz] |
---|---|---|
author | Nico Weber <thakis@chromium.org> | Sat Sep 06 19:38:01 2014 -0700 |
committer | Nico Weber <thakis@chromium.org> | Sat Sep 06 19:38:01 2014 -0700 |
tree | 4b0de18912357120296a4a521ce44ba46a63bb66 | |
parent | 1aef6f55a9866e02901fb1a565f53373d3655646 [diff] |
Let 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. While here, merge https://codereview.appspot.com/57500045 and https://codereview.appspot.com/13112043 so that the steps on https://code.google.com/p/re2/wiki/Contribute work again. R=rsc CC=re2-dev https://codereview.appspot.com/134590043