We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39eab72 commit 409ff3cCopy full SHA for 409ff3c
test/as_to_python_function.cpp
@@ -0,0 +1,14 @@
1
+// Copyright David Abrahams 2002. Permission to copy, use,
2
+// modify, sell and distribute this software is granted provided this
3
+// copyright notice appears in all copies. This software is provided
4
+// "as is" without express or implied warranty, and with no claim as
5
+// to its suitability for any purpose.
6
+
7
+#include <boost/python/converter/to_python_function_type.hpp>
8
9
+struct hopefully_illegal
10
+{
11
+ static PyObject* convert(int&);
12
+};
13
14
+PyObject* x = boost::python::converter::as_to_python_function<int, hopefully_illegal>::convert(0);
0 commit comments