diff --git a/src/App/DynamicProperty.cpp b/src/App/DynamicProperty.cpp index 07921e87f4..461bfee3f4 100644 --- a/src/App/DynamicProperty.cpp +++ b/src/App/DynamicProperty.cpp @@ -256,9 +256,15 @@ bool DynamicProperty::addProperty(Property* prop) return false; } auto& index = props.get<0>(); +#if BOOST_VERSION < 107500 if (index.count(prop->getName())) { return false; } +#else + if (index.contains(prop->getName())) { + return false; + } +#endif index.emplace(prop, std::string(), prop->getName(), diff --git a/src/App/Transactions.cpp b/src/App/Transactions.cpp index 988e2d20e7..89905d6f63 100644 --- a/src/App/Transactions.cpp +++ b/src/App/Transactions.cpp @@ -141,7 +141,11 @@ bool Transaction::isEmpty() const bool Transaction::hasObject(const TransactionalObject* Obj) const { +#if BOOST_VERSION < 107500 return !!_Objects.get<1>().count(Obj); +#else + return !!_Objects.get<1>().contains(Obj); +#endif } void Transaction::addOrRemoveProperty(TransactionalObject* Obj, const Property* pcProp, bool add)