From c103a3387b8e38b86bfc83432f1fb84dd8d18bed Mon Sep 17 00:00:00 2001 From: Peter Griess <pgriess@fb.com> Date: Tue, 10 Sep 2013 15:19:34 -0500 Subject: [PATCH] Use boost::has_trivial_copy_constructor rather than std. Summary: - libc++ doesn't ship with this method defined. Just use Boost's version of this instead. Test Plan: - fbconfig -r folly && fbmake runtests - ./configure && make check on Ubuntu/FC/Mac Reviewed By: meyering@fb.com FB internal diff: D998593 --- folly/FBVector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/FBVector.h b/folly/FBVector.h index e13195877..db7ee4f1c 100644 --- a/folly/FBVector.h +++ b/folly/FBVector.h @@ -316,7 +316,7 @@ public: private: typedef std::integral_constant<bool, - std::has_trivial_copy_constructor<T>::value && + boost::has_trivial_copy_constructor<T>::value && sizeof(T) <= 16 // don't force large structures to be passed by value > should_pass_by_value; typedef typename std::conditional< -- 2.26.2