Skip to content
Snippets Groups Projects
Commit 519b97e8 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

GeoIntrusivePtr: added template specification of the comparison operator

parent b846c79f
No related branches found
No related tags found
1 merge request!263GeoIntrusivePtr: added template specification of the comparison operator
Pipeline #6794016 passed
......@@ -101,10 +101,10 @@ class GeoIntrusivePtr{
/// Invalidity operator
bool operator!() const { return !m_ptr; }
/// Comparison operator
// template <class GeoTypeGrp>
// bool operator==(const GeoIntrusivePtr<GeoTypeGrp>& other) const {
// return m_ptr == other.m_ptr;
// }
template <class GeoTypeGrp>
bool operator==(const GeoIntrusivePtr<GeoTypeGrp>& other) const {
return m_ptr == other.m_ptr;
}
bool operator==(GeoType* other) const {
return m_ptr == other;
}
......@@ -116,4 +116,4 @@ class GeoIntrusivePtr{
GeoType* m_ptr{nullptr};
};
#endif
\ No newline at end of file
#endif
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