Introduce folly::max_align_t and folly::max_align_v
[folly.git] / folly / test / ThreadCachedArenaTest.cpp
index 458239db9aff799fb0ff5579182534a1edf8b8e1..8471e939841fcf1a5e7330ff0266c230eb5fc6fd 100644 (file)
@@ -92,7 +92,7 @@ void ArenaTester::merge(ArenaTester&& other) {
 }  // namespace
 
 TEST(ThreadCachedArena, BlockSize) {
-  static const size_t alignment = alignof(std::max_align_t);
+  static const size_t alignment = folly::max_align_v;
   static const size_t requestedBlockSize = 64;
 
   ThreadCachedArena arena(requestedBlockSize);