Skip to content

compilation problem with 1.92 beta 1 #179

Description

@aschnell

I'm having problems compiling boost 1.92 beta 1 using gcc16:

/usr/include/c++/16/bits/predefined_ops.h:81:24: error: no match for call to ‘(__gnu_cxx::__ops::_Comp_with_val<std::equal_to<void>, boost::mpi::python::request_with_value, true>::_Fn) (boost::mpi::python::request_with_value&, const boost::mpi::python::request_with_value&)’
             return _M_f(__arg, _M_val);
                    ~~~~^~~~~~~~~~~~~~~

I solved the problem by added operator== in libs/mpi/src/python/request_with_value.hpp:

friend bool operator==(const request_with_value& lhs, const request_with_value& rhs)
{
    return lhs.get_value_or_none() == rhs.get_value_or_none();
}

Not sure if this is the best solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions