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
5eda97d7
Commit
5eda97d7
authored
May 30, 2016
by
Wenzel Jakob
Browse files
gcc fix
parent
b5692721
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
include/pybind11/stl_bind.h
include/pybind11/stl_bind.h
+3
-1
No files found.
include/pybind11/stl_bind.h
View file @
5eda97d7
...
...
@@ -163,7 +163,9 @@ pybind11::class_<std::vector<T, Allocator>, holder_type> bind_vector(pybind11::m
throw
;
}
});
cl
.
def
(
"append"
,
(
void
(
Vector
::*
)
(
const
T
&
))
&
Vector
::
push_back
,
cl
.
def
(
"append"
,
[](
Vector
&
v
,
const
T
&
value
)
{
v
.
push_back
(
value
);
},
arg
(
"x"
),
"Add an item to the end of the list"
);
...
...
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