mirror of
https://github.com/boostorg/python.git
synced 2026-01-20 16:52:15 +00:00
Added static assertion to be sure it's not used on values
[SVN r13146]
This commit is contained in:
@@ -72,6 +72,7 @@ namespace detail
|
||||
template <class T, class MakeHolder>
|
||||
inline bool to_python_indirect<T,MakeHolder>::convertible()
|
||||
{
|
||||
BOOST_STATIC_ASSERT(is_pointer<T>::value || is_reference<T>::value);
|
||||
return type() != 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user