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
edbdef7c
Commit
edbdef7c
authored
Oct 02, 2015
by
Wenzel Jakob
Browse files
fixed pybind::call value policy
parent
6a32620d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
include/pybind/cast.h
include/pybind/cast.h
+1
-1
No files found.
include/pybind/cast.h
View file @
edbdef7c
...
@@ -610,7 +610,7 @@ template <typename... Args> inline object handle::call(Args&&... args_) {
...
@@ -610,7 +610,7 @@ template <typename... Args> inline object handle::call(Args&&... args_) {
const
size_t
size
=
sizeof
...(
Args
);
const
size_t
size
=
sizeof
...(
Args
);
std
::
array
<
PyObject
*
,
size
>
args
{
std
::
array
<
PyObject
*
,
size
>
args
{
{
detail
::
type_caster
<
typename
detail
::
decay
<
Args
>::
type
>::
cast
(
{
detail
::
type_caster
<
typename
detail
::
decay
<
Args
>::
type
>::
cast
(
std
::
forward
<
Args
>
(
args_
),
return_value_policy
::
automatic
,
nullptr
)...
}
std
::
forward
<
Args
>
(
args_
),
return_value_policy
::
reference
,
nullptr
)...
}
};
};
bool
fail
=
false
;
bool
fail
=
false
;
for
(
auto
result
:
args
)
for
(
auto
result
:
args
)
...
...
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