Use boost:has_trivial_destructor instead of std::...
authorSara Golemon <sgolemon@fb.com>
Fri, 23 Aug 2013 23:22:09 +0000 (16:22 -0700)
committerSara Golemon <sgolemon@fb.com>
Wed, 28 Aug 2013 21:30:12 +0000 (14:30 -0700)
Summary: Boost's version is 4.8 safe.  std's version changes name

Test Plan: hhvm builds

Reviewed By: andrei.alexandrescu@fb.com

FB internal diff: D883508

folly/ProducerConsumerQueue.h

index 989f8a2fbdc890aff38a0ada94b524dcfbe197f6..3660c24718f73fcdbe3f38913d807fc224f5b02d 100644 (file)
@@ -59,7 +59,7 @@ struct ProducerConsumerQueue : private boost::noncopyable {
     // We need to destruct anything that may still exist in our queue.
     // (No real synchronization needed at destructor time: only one
     // thread can be doing this.)
-    if (!std::has_trivial_destructor<T>::value) {
+    if (!boost::has_trivial_destructor<T>::value) {
       int read = readIndex_;
       int end = writeIndex_;
       while (read != end) {