Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GeoModel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GeoModelDev
GeoModel
Merge requests
!262
Add template specification of the comparison operator
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add template specification of the comparison operator
cherry-pick-e987b73a
into
main
Overview
0
Commits
1
Pipelines
2
Changes
1
Merged
Johannes Junggeburth
requested to merge
cherry-pick-e987b73a
into
main
1 year ago
Overview
0
Commits
1
Pipelines
2
Changes
1
Expand
(cherry picked from commit
e987b73a
)
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
cda7ac4d
1 commit,
1 year ago
1 file
+
4
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
GeoModelCore/GeoModelKernel/GeoModelKernel/GeoIntrusivePtr.h
+
4
−
4
Options
@@ -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