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
a975ab25
Commit
a975ab25
authored
Jul 19, 2016
by
Wenzel Jakob
Browse files
minor namespace change in example
parent
4a87933b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
example/example-stl-binder-vector.cpp
example/example-stl-binder-vector.cpp
+6
-6
No files found.
example/example-stl-binder-vector.cpp
View file @
a975ab25
...
...
@@ -25,13 +25,13 @@ std::ostream & operator<<(std::ostream &s, El const&v) {
}
void
init_ex_stl_binder_vector
(
py
::
module
&
m
)
{
py
bind11
::
class_
<
El
>
(
m
,
"El"
)
.
def
(
py
bind11
::
init
<
int
>
());
py
::
class_
<
El
>
(
m
,
"El"
)
.
def
(
py
::
init
<
int
>
());
py
bind11
::
bind_vector
<
unsigned
int
>
(
m
,
"VectorInt"
);
py
bind11
::
bind_vector
<
bool
>
(
m
,
"VectorBool"
);
py
::
bind_vector
<
unsigned
int
>
(
m
,
"VectorInt"
);
py
::
bind_vector
<
bool
>
(
m
,
"VectorBool"
);
py
bind11
::
bind_vector
<
El
>
(
m
,
"VectorEl"
);
py
::
bind_vector
<
El
>
(
m
,
"VectorEl"
);
py
bind11
::
bind_vector
<
std
::
vector
<
El
>>
(
m
,
"VectorVectorEl"
);
py
::
bind_vector
<
std
::
vector
<
El
>>
(
m
,
"VectorVectorEl"
);
}
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