Boost logo

Boost :

From: LORIEN DUNN (l.dunn_at_[hidden])
Date: 2001-02-05 21:21:26


Hullo,
        I have some problems with this:

BOOST_PYTHON_BEGIN_CONVERSION_NAMESPACE // this is a gcc 2.95.2 bug
workaround
  PyObject* to_python(Foo& p)
  {
      return boost::python::PyExtensionClassConverters::ptr_to_python(&p);
  }
BOOST_PYTHON_END_CONVERSION_NAMESPACE

1) boost::python::PyExtensionClassConverters does not exist. Nor does
boost::python::py_extension_class_converters, nor
py_extension_class_converters. What is correcct these days?

2) I got it compiling (after examing the source) with
BOOST_PYTHON_BEGIN_CONVERSION_NAMESPACE // this is a gcc 2.95.2 bug
workaround
  PyObject* to_python(Transmitter& t)
  {
      return python_extension_class_converters<Transmitter,
TransmitterPyCallback>::ptr_to_python(&t);
  }
BOOST_PYTHON_END_CONVERSION_NAMESPACE

but during linking I was told I have two definitions of
"to_python(Transmitter& t)"

Any hints?
Thanks,
Lorien Dunn

____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk