2
0
mirror of https://github.com/boostorg/python.git synced 2026-02-01 20:52:13 +00:00
[SVN r13283]
This commit is contained in:
Dave Abrahams
2002-03-26 17:41:06 +00:00
parent 576269dae9
commit 2a6060e425

View File

@@ -8,13 +8,9 @@
#include <boost/python/module.hpp>
#include "test_class.hpp"
// This test shows that a class can be wrapped "as itself" but also
// acquire a back-reference iff has_back_reference<> is appropriately
// specialized.
using namespace boost::python;
typedef test_class<> X;
typedef test_class<1> Y;
int x_value(X const& x)
{
@@ -35,12 +31,6 @@ BOOST_PYTHON_MODULE_INIT(implicit_ext)
.def("value", &X::value)
.def("set", &X::set)
)
.add(
class_<Y>("Y")
.def_init(args<int>())
.def("value", &Y::value)
.def("set", &Y::set)
)
;
implicitly_convertible<X,int>();
}