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
4a50fa5c
Commit
4a50fa5c
authored
Feb 23, 2016
by
Wenzel Jakob
Browse files
Address issue with handle::cast<bool>(), quench warning in example 12 (fixes #110)
parent
9cfa71f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
example/example12.cpp
example/example12.cpp
+1
-0
include/pybind11/cast.h
include/pybind11/cast.h
+1
-1
No files found.
example/example12.cpp
View file @
4a50fa5c
...
...
@@ -54,6 +54,7 @@ public:
Example12
,
run_bool
);
throw
std
::
runtime_error
(
"this will never be reached"
);
}
virtual
void
pure_virtual
()
{
...
...
include/pybind11/cast.h
View file @
4a50fa5c
...
...
@@ -574,7 +574,7 @@ template <typename T> inline object cast(const T &value, return_value_policy pol
return
object
(
detail
::
type_caster
<
typename
detail
::
intrinsic_type
<
T
>::
type
>::
cast
(
value
,
policy
,
parent
),
false
);
}
template
<
typename
T
>
inline
T
handle
::
cast
()
const
{
return
pybind11
::
cast
<
T
>
(
m_ptr
);
}
template
<
typename
T
>
inline
T
handle
::
cast
()
const
{
return
pybind11
::
cast
<
T
>
(
*
this
);
}
template
<
>
inline
void
handle
::
cast
()
const
{
return
;
}
template
<
typename
...
Args
>
inline
object
handle
::
call
(
Args
&&
...
args_
)
const
{
...
...
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