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

Unified Diff: base/memory/manual_constructor.h

Issue 2670873002: Remove base's ALIGNOF/ALIGNAS in favor of alignof/alignas. (Closed)
Patch Set: rebase Created 3 years, 10 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 | « base/memory/aligned_memory_unittest.cc ('k') | base/memory/singleton.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/manual_constructor.h
diff --git a/base/memory/manual_constructor.h b/base/memory/manual_constructor.h
index f401f62d513803803efdd4de3a8b1de8ede9ba9f..459cb58207375da2d1c90ae10b1e533eda37f197 100644
--- a/base/memory/manual_constructor.h
+++ b/base/memory/manual_constructor.h
@@ -34,7 +34,7 @@ class ManualConstructor {
// Support users creating arrays of ManualConstructor<>s. This ensures that
// the array itself has the correct alignment.
static void* operator new[](size_t size) {
- return AlignedAlloc(size, ALIGNOF(Type));
+ return AlignedAlloc(size, alignof(Type));
}
static void operator delete[](void* mem) {
AlignedFree(mem);
@@ -67,7 +67,7 @@ class ManualConstructor {
}
private:
- AlignedMemory<sizeof(Type), ALIGNOF(Type)> space_;
+ AlignedMemory<sizeof(Type), alignof(Type)> space_;
};
} // namespace base
« no previous file with comments | « base/memory/aligned_memory_unittest.cc ('k') | base/memory/singleton.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698