]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/python/test/as_to_python_function.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / python / test / as_to_python_function.cpp
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);