Skip to content
Snippets Groups Projects

Add template specification of the comparison operator

Merged Johannes Junggeburth requested to merge cherry-pick-e987b73a into main
1 file
+ 4
4
Compare changes
  • Side-by-side
  • Inline
@@ -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;
}
Loading