Added static assertion to be sure it's not used on values

[SVN r13146]
This commit is contained in:
Dave Abrahams
2002-03-09 20:51:43 +00:00
parent a16d9f91ee
commit 7c009e2443
@@ -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;
}