1 // Copyright David Abrahams 2002. 2 // Distributed under the Boost Software License, Version 1.0. (See 3 // accompanying file LICENSE_1_0.txt or copy at 4 // http://www.boost.org/LICENSE_1_0.txt) 5 6 #include <boost/python/converter/as_to_python_function.hpp> 7 8 struct hopefully_illegal 9 { 10 static PyObject* convert(int&); 11 }; 12 13 PyObject* x = boost::python::converter::as_to_python_function<int, hopefully_illegal>::convert(0); 14