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
a03e861d
"docs/source/en/optimization/fp16.mdx" did not exist on "7e92c5bc736a5e65c71b3017a0b1a8b8648d3b7e"
Commit
a03e861d
authored
Oct 31, 2012
by
Jesse Beder
Browse files
Switched map's convert<> specialization to use the new force_insert
parent
09b4706f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
include/yaml-cpp/node/convert.h
include/yaml-cpp/node/convert.h
+1
-1
No files found.
include/yaml-cpp/node/convert.h
View file @
a03e861d
...
@@ -128,7 +128,7 @@ namespace YAML
...
@@ -128,7 +128,7 @@ namespace YAML
static
Node
encode
(
const
std
::
map
<
K
,
V
>&
rhs
)
{
static
Node
encode
(
const
std
::
map
<
K
,
V
>&
rhs
)
{
Node
node
(
NodeType
::
Map
);
Node
node
(
NodeType
::
Map
);
for
(
typename
std
::
map
<
K
,
V
>::
const_iterator
it
=
rhs
.
begin
();
it
!=
rhs
.
end
();
++
it
)
for
(
typename
std
::
map
<
K
,
V
>::
const_iterator
it
=
rhs
.
begin
();
it
!=
rhs
.
end
();
++
it
)
node
[
it
->
first
]
=
it
->
second
;
node
.
force_insert
(
it
->
first
,
it
->
second
)
;
return
node
;
return
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