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

Merge branch '5.0.X-smartlink-fix' into '5.0.X'

GeoIntrusivePtr: added template specification of the comparison operator

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