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
e58f0f31
"example/13_pool2d_fwd/pool2d_fwd.cpp" did not exist on "12dfba3d03f402c051e2129fa21f33264f4d26e5"
Commit
e58f0f31
authored
Mar 15, 2010
by
jbeder
Browse files
Set alias nodes to return the tag of their anchor
parent
8080400c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
include/node.h
include/node.h
+1
-1
No files found.
include/node.h
View file @
e58f0f31
...
@@ -77,7 +77,7 @@ namespace YAML
...
@@ -77,7 +77,7 @@ namespace YAML
bool
IsReferenced
()
const
{
return
m_referenced
;
}
bool
IsReferenced
()
const
{
return
m_referenced
;
}
// for tags
// for tags
const
std
::
string
GetTag
()
const
{
return
m_tag
;
}
// TODO: should an aliased node return its alias's tag?
const
std
::
string
GetTag
()
const
{
return
IsAlias
()
?
m_pIdentity
->
GetTag
()
:
m_tag
;
}
// emitting
// emitting
friend
Emitter
&
operator
<<
(
Emitter
&
out
,
const
Node
&
node
);
friend
Emitter
&
operator
<<
(
Emitter
&
out
,
const
Node
&
node
);
...
...
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