as_to_python_function.cpp 418 B

12345678910111213
  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. #include <boost/python/converter/as_to_python_function.hpp>
  6. struct hopefully_illegal
  7. {
  8. static PyObject* convert(int&);
  9. };
  10. PyObject* x = boost::python::converter::as_to_python_function<int, hopefully_illegal>::convert(0);