|
Boost Users : |
From: Daniel Wallin (dalwan01_at_[hidden])
Date: 2006-07-08 18:21:42
Sebastien Fortier wrote:
> I've tried what you have suggested but it does not work, here is the error
[...]
> class_<boost::multi_array<double, 2> >("multi_array_2d");
> class_<boost::const_multi_array_ref<double, 2>
> >("const_multi_array_ref_2d");
> implicitly_convertible<boost::multi_array<double, 2>,
> boost::multi_array_ref<double, 2> >();
> implicitly_convertible<boost::multi_array<double, 2>,
> boost::const_multi_array_ref<double, 2> >();
> }
multi_array_ref<> isn't default constructible. You need to let
Boost.Python know that:
class_<boost::const_multi_array_ref<double, 2> > >(
"const_multi_array_ref_2d", no_init
);
class_<boost::multi_array_ref<double, 2> > >(
"multi_array_ref_2d", no_init
);
-- Daniel Wallin
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net