Consistently have the namespace closing comment
[folly.git] / folly / CachelinePadded.h
index 6e30b62320d368138df0ae51d678a9aeab2859aa..233d4bd7c53b4dfd34bd4fd8ad03ec42a7b99360 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <cstddef>
 
+#include <folly/Portability.h>
 #include <folly/concurrency/CacheLocality.h>
 
 namespace folly {
@@ -32,8 +33,8 @@ namespace folly {
 template <typename T>
 class CachelinePadded {
   static_assert(
-      alignof(T) <= alignof(std::max_align_t),
-      "CachelinePadded does not support over-aligned types");
+      alignof(T) <= folly::max_align_v,
+      "CachelinePadded does not support over-aligned types.");
 
  public:
   template <typename... Args>
@@ -66,11 +67,11 @@ class CachelinePadded {
 
  private:
   static constexpr size_t paddingSize() noexcept {
-    return folly::CacheLocality::kFalseSharingRange -
-        (alignof(T) % folly::CacheLocality::kFalseSharingRange);
+    return CacheLocality::kFalseSharingRange -
+        (alignof(T) % CacheLocality::kFalseSharingRange);
   }
   char paddingPre_[paddingSize()];
   T inner_;
   char paddingPost_[paddingSize()];
 };
-}
+} // namespace folly