Use boost::has_trivial_copy_constructor rather than std.
authorPeter Griess <pgriess@fb.com>
Tue, 10 Sep 2013 20:19:34 +0000 (15:19 -0500)
committerPeter Griess <pgriess@fb.com>
Tue, 15 Oct 2013 01:46:48 +0000 (18:46 -0700)
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

index e1319587727099bcad85ec531249d57a8599da0f..db7ee4f1c0ed18196188335a41f7e36858536ecd 100644 (file)
@@ -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<