mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 13:15:12 +00:00
Address issue with handle::cast<bool>(), quench warning in example 12 (fixes #110)
This commit is contained in:
parent
9cfa71f411
commit
4a50fa5cd4
@ -54,6 +54,7 @@ public:
|
||||
Example12,
|
||||
run_bool
|
||||
);
|
||||
throw std::runtime_error("this will never be reached");
|
||||
}
|
||||
|
||||
virtual void pure_virtual() {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user