Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1062)

Issue 77343005: When using C++11, use static_assert to implement COMPILE_ASSERT (Closed)

Created:
7 years, 1 month ago by Mark Mentovai
Modified:
7 years, 1 month ago
Reviewers:
Nico
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

When using C++11, use static_assert to implement COMPILE_ASSERT. Tag COMPILE_ASSERT with ALLOW_UNUSED for non-C++11 GCC 4.8, which otherwise produces warnings under -Wunused-local-typedefs. That warning is currently disabled in Chromium (r194779), but the ultimate goal should be to enable that warning. BUG=321833 R=thakis@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236356

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : git cl try #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -2 lines) Patch
M base/basictypes.h View 1 2 3 chunks +12 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Mark Mentovai
7 years, 1 month ago (2013-11-20 23:21:38 UTC) #1
Nico
lgtm! Thanks, I wanted to do this for a while. Maybe file a bug for ...
7 years, 1 month ago (2013-11-20 23:56:36 UTC) #2
Mark Mentovai
7 years, 1 month ago (2013-11-21 00:51:41 UTC) #3
Message was sent while issue was closed.
Committed patchset #3 manually as r236356 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698