Fix crash in exception_wrapper::get_exception<>
[folly.git] / folly / AtomicStruct.h
index d15d0d9312e9b96b1e29353724b0819d6b292211..a774d31500fd952afd49e1a326560d30e3c5eaa6 100644 (file)
@@ -17,7 +17,7 @@
 #pragma once
 
 #include <folly/Traits.h>
-#include <folly/detail/AtomicUtils.h>
+#include <folly/synchronization/detail/AtomicUtils.h>
 #include <stdint.h>
 #include <string.h>
 #include <atomic>
@@ -27,13 +27,13 @@ namespace folly {
 
 namespace detail {
 template <int N> struct AtomicStructIntPick {};
-}
+} // namespace detail
 
 /// AtomicStruct<T> work like C++ atomics, but can be used on any POD
 /// type <= 8 bytes.
 template <
     typename T,
-    template<typename> class Atom = std::atomic,
+    template <typename> class Atom = std::atomic,
     typename Raw = typename detail::AtomicStructIntPick<sizeof(T)>::type>
 class AtomicStruct {
   static_assert(alignof(T) <= alignof(Raw),