Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
9e62bf83
Commit
9e62bf83
authored
Sep 11, 2011
by
Jesse Beder
Browse files
Removed the (unimplemented) operator <, and added operator == (in place of is()) for nodes
parent
f9d826c2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
16 deletions
+4
-16
include/yaml-cpp/node/impl.h
include/yaml-cpp/node/impl.h
+2
-11
include/yaml-cpp/node/node.h
include/yaml-cpp/node/node.h
+2
-5
No files found.
include/yaml-cpp/node/impl.h
View file @
9e62bf83
...
@@ -233,17 +233,8 @@ namespace YAML
...
@@ -233,17 +233,8 @@ namespace YAML
}
}
// free functions
// free functions
inline
int
compare
(
const
Node
&
lhs
,
const
Node
&
rhs
)
{
return
0
;
}
inline
bool
operator
<
(
const
Node
&
lhs
,
const
Node
&
rhs
)
{
return
false
;
}
inline
bool
is
(
const
Node
&
lhs
,
const
Node
&
rhs
)
inline
bool
operator
==
(
const
Node
&
lhs
,
const
Node
&
rhs
)
{
{
return
lhs
.
is
(
rhs
);
return
lhs
.
is
(
rhs
);
}
}
...
...
include/yaml-cpp/node/node.h
View file @
9e62bf83
...
@@ -84,10 +84,7 @@ namespace YAML
...
@@ -84,10 +84,7 @@ namespace YAML
detail
::
node
*
m_pNode
;
detail
::
node
*
m_pNode
;
};
};
int
compare
(
const
Node
&
lhs
,
const
Node
&
rhs
);
bool
operator
==
(
const
Node
&
lhs
,
const
Node
&
rhs
);
bool
operator
<
(
const
Node
&
lhs
,
const
Node
&
rhs
);
bool
is
(
const
Node
&
lhs
,
const
Node
&
rhs
);
template
<
typename
T
>
template
<
typename
T
>
struct
convert
;
struct
convert
;
...
...
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