Index: cc/base/contiguous_container.h |
diff --git a/cc/base/contiguous_container.h b/cc/base/contiguous_container.h |
index 3dd3fecde74be1372c8456f794173003b0d16e13..b4de6ceb2aa30aa3aa9d47dd0c362135b7845a20 100644 |
--- a/cc/base/contiguous_container.h |
+++ b/cc/base/contiguous_container.h |
@@ -163,7 +163,7 @@ class ContiguousContainer : public ContiguousContainerBase { |
template <class DerivedElementType, typename... Args> |
DerivedElementType& AllocateAndConstruct(Args&&... args) { |
- static_assert(alignment % ALIGNOF(DerivedElementType) == 0, |
+ static_assert(alignment % alignof(DerivedElementType) == 0, |
"Derived type requires stronger alignment."); |
return *new (AlignedAllocate(sizeof(DerivedElementType))) |
DerivedElementType(std::forward<Args>(args)...); |