File libreoffice_compat_backports.patch of Package boost
Backport Boost::Optional::has_value() from
https://github.com/boostorg/optional/commit/5182f7f30fad87023ae5e5a4e1f660fb513fb469
needed by LibreOffice 6.4.2
Index: boost_1_54_0/boost/optional/optional.hpp
===================================================================
--- boost_1_54_0.orig/boost/optional/optional.hpp
+++ boost_1_54_0/boost/optional/optional.hpp
@@ -653,6 +653,8 @@ class optional : public optional_detail:
// This is provided for those compilers which don't like the conversion to bool
// on some contexts.
bool operator!() const { return !this->is_initialized() ; }
+
+ bool has_value() const { return this->is_initialized() ; }
} ;
// Returns optional<T>(v)