Commit f329738a authored by Dominik Charousset's avatar Dominik Charousset

Implement equality for actions

parent 39546432
......@@ -118,6 +118,16 @@ private:
impl_ptr pimpl_;
};
/// Checks whether two actions are equal by comparing their pointers.
inline bool operator==(const action& lhs, const action& rhs) noexcept {
return lhs.ptr() == rhs.ptr();
}
/// Checks whether two actions are not equal by comparing their pointers.
inline bool operator!=(const action& lhs, const action& rhs) noexcept {
return !(lhs == rhs);
}
} // namespace caf
namespace caf::detail {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment