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
d770a7dc
Commit
d770a7dc
authored
Jul 17, 2012
by
Jeff Wang
Browse files
workaround for gcc 3
parent
82331138
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
include/yaml-cpp/node/convert.h
include/yaml-cpp/node/convert.h
+15
-0
No files found.
include/yaml-cpp/node/convert.h
View file @
d770a7dc
...
...
@@ -138,7 +138,12 @@ namespace YAML
rhs
.
clear
();
for
(
const_iterator
it
=
node
.
begin
();
it
!=
node
.
end
();
++
it
)
#if defined(__GNUC__) && __GNUC__ < 4
//workaround for GCC 3:
rhs
[
it
->
first
.
template
as
<
K
>()]
=
it
->
second
.
template
as
<
V
>();
#else
rhs
[
it
->
first
.
as
<
K
>
()]
=
it
->
second
.
as
<
V
>
();
#endif
return
true
;
}
};
...
...
@@ -159,7 +164,12 @@ namespace YAML
rhs
.
clear
();
for
(
const_iterator
it
=
node
.
begin
();
it
!=
node
.
end
();
++
it
)
#if defined(__GNUC__) && __GNUC__ < 4
//workaround for GCC 3:
rhs
.
push_back
(
it
->
template
as
<
T
>());
#else
rhs
.
push_back
(
it
->
as
<
T
>
());
#endif
return
true
;
}
};
...
...
@@ -180,7 +190,12 @@ namespace YAML
rhs
.
clear
();
for
(
const_iterator
it
=
node
.
begin
();
it
!=
node
.
end
();
++
it
)
#if defined(__GNUC__) && __GNUC__ < 4
//workaround for GCC 3:
rhs
.
push_back
(
it
->
template
as
<
T
>());
#else
rhs
.
push_back
(
it
->
as
<
T
>
());
#endif
return
true
;
}
};
...
...
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