Skip to content
Snippets Groups Projects
Commit 07790fdd authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

ref: Add equality operators

parent 9cf991f4
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,16 @@ public:
return ref<T2>((std::shared_ptr<T2>) p);
}
bool operator == (const ref<T> & other) const
{
return p == other.p;
}
bool operator != (const ref<T> & other) const
{
return p != other.p;
}
private:
template<typename T2, typename... Args>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment