Skip to content
Snippets Groups Projects
Commit fb7fd9ab authored by Johannes Junggeburth's avatar Johannes Junggeburth :dog2:
Browse files

Add template specification of the comparison operator

parent d34df670
No related branches found
No related tags found
1 merge request!262Add template specification of the comparison operator
......@@ -108,10 +108,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;
}
......
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