From 573d6149a5e549bbc6f335aee4bf89491f92359e Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Fri, 23 Aug 2013 16:22:09 -0700 Subject: [PATCH] Use boost:has_trivial_destructor instead of std::... 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/ProducerConsumerQueue.h b/folly/ProducerConsumerQueue.h index 989f8a2f..3660c247 100644 --- a/folly/ProducerConsumerQueue.h +++ b/folly/ProducerConsumerQueue.h @@ -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::value) { + if (!boost::has_trivial_destructor::value) { int read = readIndex_; int end = writeIndex_; while (read != end) { -- 2.34.1