Boost logo

Boost :

From: Ralf W. Grosse-Kunstleve (rwgk_at_[hidden])
Date: 2002-04-08 02:13:53

--- David GD Wilson <firestar_at_[hidden]> wrote:
> Hi,
> I am trying to export a C++ class (CVector) defined in a boost.python
> module to use in another boost.python module, however I get the compile
> error:
> c:\sdk\boost_1_27_0\boost\python\cross_module.hpp(215): error C2665:
> 'boost::python::from_python' : none of the 59 overloads can convert
> parameter 2 from type 'boost::python::type<T>'
> with
> [
> T=boost::shared_ptr<CVector> &
> ]

The cross-module support definitely works with VC6, but I have not
tried VC7.
- Can you compile all the examples? You can quickly try this using
  vc60.mak in the build directory.
- Does your code compile if you remove the export_converters()
- If yes, create a dummy function with a boost::shared_ptr<CVector> &
  argument and core_module.def(dummy, "dummy"). Does this compile
  (try with gcc first)?

Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax

Boost list run by bdawes at, gregod at, cpdaniel at, john at