We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 576269d commit 2a6060eCopy full SHA for 2a6060e
test/implicit.cpp
@@ -8,13 +8,9 @@
8
#include <boost/python/module.hpp>
9
#include "test_class.hpp"
10
11
-// This test shows that a class can be wrapped "as itself" but also
12
-// acquire a back-reference iff has_back_reference<> is appropriately
13
-// specialized.
14
using namespace boost::python;
15
16
typedef test_class<> X;
17
-typedef test_class<1> Y;
18
19
int x_value(X const& x)
20
{
@@ -35,12 +31,6 @@ BOOST_PYTHON_MODULE_INIT(implicit_ext)
35
31
.def("value", &X::value)
36
32
.def("set", &X::set)
37
33
)
38
- .add(
39
- class_<Y>("Y")
40
- .def_init(args<int>())
41
- .def("value", &Y::value)
42
- .def("set", &Y::set)
43
- )
44
34
;
45
implicitly_convertible<X,int>();
46
}
0 commit comments