Remove gcc-v4.7 support from MemoryIdler
[folly.git] / folly / detail / MemoryIdler.h
index 1a924b578e4b260a4baa1eecd2d697bdecaa6602..2804ffb8fe8f4aed4a11a6a37c8ed084477b06dc 100644 (file)
 #include <atomic>
 #include <chrono>
 
-#include <folly/Traits.h>
 #include <folly/detail/Futex.h>
 #include <folly/hash/Hash.h>
 #include <folly/synchronization/AtomicStruct.h>
 #include <folly/system/ThreadId.h>
 
-namespace folly {
-
-// gcc 4.7 doesn't do std::is_trivial correctly, override so we can use
-// AtomicStruct<duration>
-template <>
-struct IsTriviallyCopyable<std::chrono::steady_clock::duration>
-  : std::true_type {};
-
-} // namespace folly
-
 namespace folly { namespace detail {
 
 /// MemoryIdler provides helper routines that allow routines to return