Index: sandbox/win/src/policy_engine_opcodes.h |
diff --git a/sandbox/win/src/policy_engine_opcodes.h b/sandbox/win/src/policy_engine_opcodes.h |
index 741ebe39084d30616f371b8b85dba70f92530072..17d1764b1c860185141fbf2ed1ca5c410b90f7c2 100644 |
--- a/sandbox/win/src/policy_engine_opcodes.h |
+++ b/sandbox/win/src/policy_engine_opcodes.h |
@@ -154,7 +154,7 @@ class PolicyOpcode { |
// from 0 to < kArgumentCount. |
template <typename T> |
void GetArgument(size_t index, T* argument) const { |
- COMPILE_ASSERT(sizeof(T) <= sizeof(arguments_[0]), invalid_size); |
+ static_assert(sizeof(T) <= sizeof(arguments_[0]), "invalid size"); |
*argument = *reinterpret_cast<const T*>(&arguments_[index].mem); |
} |
@@ -162,7 +162,7 @@ class PolicyOpcode { |
// from 0 to < kArgumentCount. |
template <typename T> |
void SetArgument(size_t index, const T& argument) { |
- COMPILE_ASSERT(sizeof(T) <= sizeof(arguments_[0]), invalid_size); |
+ static_assert(sizeof(T) <= sizeof(arguments_[0]), "invalid size"); |
*reinterpret_cast<T*>(&arguments_[index].mem) = argument; |
} |