Skip to content

Commit 409ff3c

Browse files
committed
Added missing test
[SVN r16337]
1 parent 39eab72 commit 409ff3c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/as_to_python_function.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)