From 7c009e2443e210fa9fffc53d080c68a6d14dd63d Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sat, 9 Mar 2002 20:51:43 +0000 Subject: [PATCH] Added static assertion to be sure it's not used on values [SVN r13146] --- include/boost/python/to_python_indirect.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/boost/python/to_python_indirect.hpp b/include/boost/python/to_python_indirect.hpp index 7b77f5ff..fbbfc6f7 100644 --- a/include/boost/python/to_python_indirect.hpp +++ b/include/boost/python/to_python_indirect.hpp @@ -72,6 +72,7 @@ namespace detail template inline bool to_python_indirect::convertible() { + BOOST_STATIC_ASSERT(is_pointer::value || is_reference::value); return type() != 0; }