15 V1(
double p_v) :
v(p_v) {}
27 return std::make_unique<std::string>(
"str");
31 return std::make_unique<std::complex<double> >(1., 0.);
36 :
int_ptr(std::make_unique<int>(20)),
38 str_ptr(std::make_unique<std::string>(
"str")),
39 complex_ptr(std::make_unique<std::complex<double> >(1., 0.)) {}
51 bp::class_<V1>(
"V1", bp::init<>()).def_readwrite(
"v", &
V1::v);
60 boost::python::class_<UniquePtrHolder, boost::noncopyable>(
"UniquePtrHolder",
62 .add_property(
"int_ptr",
65 .add_property(
"v1_ptr",
68 .add_property(
"null_ptr",
71 .add_property(
"str_ptr",
74 .add_property(
"complex_ptr",