Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libconfig
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
libconfig
Commits
a2b8f499
Commit
a2b8f499
authored
May 26, 2014
by
hyperrealm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed implementations of iterator operator== and operator!=
(which were infinitely recursive).
parent
cea2aee8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lib/libconfig.h++
lib/libconfig.h++
+4
-4
No files found.
lib/libconfig.h++
View file @
a2b8f499
...
...
@@ -335,10 +335,10 @@ class LIBCONFIGXX_API SettingIterator
// Equality comparison.
inline
bool
operator
==
(
SettingIterator
const
&
other
)
const
{
return
(
_idx
==
other
.
_idx
);
}
{
return
(
(
_setting
==
other
.
_setting
)
&&
(
_idx
==
other
.
_idx
)
);
}
inline
bool
operator
!=
(
SettingIterator
const
&
other
)
const
{
return
(
*
this
!=
other
);
}
{
return
(
!
operator
==
(
other
)
);
}
bool
operator
<
(
SettingIterator
const
&
other
)
const
;
...
...
@@ -390,10 +390,10 @@ class LIBCONFIGXX_API SettingConstIterator
// Equality comparison.
bool
operator
==
(
SettingConstIterator
const
&
other
)
const
{
return
(
_idx
==
other
.
_idx
);
}
{
return
(
(
_setting
==
other
.
_setting
)
&&
(
_idx
==
other
.
_idx
)
);
}
inline
bool
operator
!=
(
SettingConstIterator
const
&
other
)
const
{
return
(
*
this
!=
other
);
}
{
return
(
!
operator
==
(
other
)
);
}
// Dereference operators.
inline
Setting
const
&
operator
*
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment