From: Sara Golemon Date: Fri, 23 Aug 2013 23:22:09 +0000 (-0700) Subject: Use boost:has_trivial_destructor instead of std::... X-Git-Tag: v0.22.0~895 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=573d6149a5e549bbc6f335aee4bf89491f92359e;p=folly.git 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 --- 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) {