Projects
OpenHPC4:4.2:Factory
boost-gnu16-mpich
_service:extract_file:boost-1.92.0-mpi_request_...
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:extract_file:boost-1.92.0-mpi_request_equality.patch of Package boost-gnu16-mpich
--- a/boost/mpi/request.hpp +++ b/boost/mpi/request.hpp @@ -122,7 +122,20 @@ * Is this request potentialy pending ? */ bool active() const { return bool(m_handler) && m_handler->active(); } - + + /** + * Two requests are considered equal when they refer to the same + * underlying communication, i.e. share the same handler. + */ + friend bool operator==(request const& lhs, request const& rhs) + { + return lhs.m_handler == rhs.m_handler; + } + friend bool operator!=(request const& lhs, request const& rhs) + { + return !(lhs == rhs); + } + // Some data might need protection while the reqest is processed. void preserve(boost::shared_ptr<void> d);
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.