diff --git a/build/fbcode_builder/manifests/boost b/build/fbcode_builder/manifests/boost index 2900324a3..969f615bd 100644 --- a/build/fbcode_builder/manifests/boost +++ b/build/fbcode_builder/manifests/boost @@ -62,6 +62,7 @@ boost-static [build] builder = boost job_weight_mib = 512 +patchfile = boost_comparator_operator_fix.patch [b2.args] --with-atomic diff --git a/build/fbcode_builder/patches/boost_comparator_operator_fix.patch b/build/fbcode_builder/patches/boost_comparator_operator_fix.patch new file mode 100644 index 000000000..3771f2fff --- /dev/null +++ b/build/fbcode_builder/patches/boost_comparator_operator_fix.patch @@ -0,0 +1,11 @@ +diff --git a/boost/serialization/strong_typedef.hpp b/boost/serialization/strong_typedef.hpp +--- a/boost/serialization/strong_typedef.hpp ++++ b/boost/serialization/strong_typedef.hpp +@@ -44,6 +44,7 @@ + operator const T&() const {return t;} \ + operator T&() {return t;} \ + bool operator==(const D& rhs) const {return t == rhs.t;} \ ++ bool operator==(const T& lhs) const {return t == lhs;} \ + bool operator<(const D& rhs) const {return t < rhs.t;} \ + }; +