[C++-sig] make_constructor, with_custodian_and_ward problems (again)
hans_meine at gmx.net
Thu Sep 13 17:32:39 CEST 2007
On Donnerstag 13 September 2007, Neal Becker wrote:
> What's the correct way to do this? Neither of the below .defs will
> class_<multi_array_ref<int,1> > ("multi_array_int_1", no_init)
> .def ("__init__", make_constructor (&make_array_int_1),
> .def ("__init__", make_constructor
> (&make_array_int_1, with_custodian_and_ward_postcall<0,1>())) ;
> This same question was raised before, but I don't see a correct answer:
I was about to point you to the thread I started about the very same problem,
but I realized last-minute that the link you posted is exactly that one.
FWIW, I have not found a solution, but still have the same problem.
(I.e. I live with the dangerous default_policies ATM.)
Ciao, / / .o.
/ / ANS ooo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part.
More information about the Cplusplus-sig