Skip to content

Commit

Permalink
fixed inline functions in endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mdorier committed Mar 29, 2022
1 parent adff566 commit d304c27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/thallium/endpoint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,15 @@ inline hg_addr_t endpoint::get_addr(bool copy) const {
return new_addr;
}

bool endpoint::operator==(const endpoint& other) const {
inline bool endpoint::operator==(const endpoint& other) const {
if(is_null() && other.is_null()) return true;
if(is_null() || other.is_null()) return false;
auto engine_impl = m_engine_impl.lock();
if(!engine_impl) throw exception("Invalid engine");
return margo_addr_cmp(engine_impl->m_mid, m_addr, other.m_addr) == HG_TRUE;
}

void endpoint::set_remove() {
inline void endpoint::set_remove() {
if(is_null()) return;
auto engine_impl = m_engine_impl.lock();
if(!engine_impl) throw exception("Invalid engine");
Expand Down

0 comments on commit d304c27

Please sign in to comment.