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

Unified Diff: sandbox/win/src/crosscall_client.h

Issue 821693003: replace COMPILE_ASSERT with static_assert in sandbox/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sandbox/win/src/Wow64.cc ('k') | sandbox/win/src/crosscall_params.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/crosscall_client.h
diff --git a/sandbox/win/src/crosscall_client.h b/sandbox/win/src/crosscall_client.h
index 2a482b4182e43e1f0fac9dc2d5c1a930f119ef8c..5b1bce71b2eab30b727a87afe9f35138e0580d85 100644
--- a/sandbox/win/src/crosscall_client.h
+++ b/sandbox/win/src/crosscall_client.h
@@ -78,7 +78,7 @@ class CopyHelper {
// Returns this object's type.
ArgType GetType() {
- COMPILE_ASSERT(sizeof(T) == sizeof(uint32), need_specialization);
+ static_assert(sizeof(T) == sizeof(uint32), "specialization needed");
return UINT32_TYPE;
}
@@ -300,7 +300,7 @@ class CopyHelper<InOutCountedBuffer> {
ActualParams* params = new(raw_mem) ActualParams(tag);
#define XCALL_GEN_COPY_PARAM(num, params) \
- COMPILE_ASSERT(kMaxIpcParams >= num, too_many_parameters); \
+ static_assert(kMaxIpcParams >= num, "too many parameters"); \
CopyHelper<Par##num> ch##num(p##num); \
if (!params->CopyParamIn(num - 1, ch##num.GetStart(), ch##num.GetSize(), \
ch##num.IsInOut(), ch##num.GetType())) \
« no previous file with comments | « sandbox/win/src/Wow64.cc ('k') | sandbox/win/src/crosscall_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698