Skip to content

Commit 7c009e2

Browse files
committed
Added static assertion to be sure it's not used on values
[SVN r13146]
1 parent a16d9f9 commit 7c009e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/boost/python/to_python_indirect.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ namespace detail
7272
template <class T, class MakeHolder>
7373
inline bool to_python_indirect<T,MakeHolder>::convertible()
7474
{
75+
BOOST_STATIC_ASSERT(is_pointer<T>::value || is_reference<T>::value);
7576
return type() != 0;
7677
}
7778

0 commit comments

Comments
 (0)