Commit c103a338 authored by Peter Griess's avatar Peter Griess

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
parent 6bd1d409
...@@ -316,7 +316,7 @@ public: ...@@ -316,7 +316,7 @@ public:
private: private:
typedef std::integral_constant<bool, 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 sizeof(T) <= 16 // don't force large structures to be passed by value
> should_pass_by_value; > should_pass_by_value;
typedef typename std::conditional< typedef typename std::conditional<
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment