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
pybind11
Commits
9d573f44
Commit
9d573f44
authored
Dec 26, 2015
by
Wenzel Jakob
Browse files
stl.h fix for std::map (see PR #43)
parent
1546b857
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
include/pybind11/stl.h
include/pybind11/stl.h
+1
-1
No files found.
include/pybind11/stl.h
View file @
9d573f44
...
@@ -110,7 +110,7 @@ public:
...
@@ -110,7 +110,7 @@ public:
while
(
PyDict_Next
(
src
,
&
pos
,
&
key_
,
&
value_
))
{
while
(
PyDict_Next
(
src
,
&
pos
,
&
key_
,
&
value_
))
{
if
(
!
kconv
.
load
(
key_
,
convert
)
||
!
vconv
.
load
(
value_
,
convert
))
if
(
!
kconv
.
load
(
key_
,
convert
)
||
!
vconv
.
load
(
value_
,
convert
))
return
false
;
return
false
;
value
[
kconv
]
=
vconv
;
value
[
(
Key
)
kconv
]
=
(
Value
)
vconv
;
}
}
return
true
;
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