Boost logo

Boost :

From: David Abrahams (abrahams_at_[hidden])
Date: 2001-05-13 19:11:12


As far as I can tell from the little information you've supplied, you're
declaring a constructor<const char*const&> for your Python wrapper of class
PlaywaveStream::Callback, but PlaywaveStream::Callback has no corresponding
C++ constructor.

HTH,
dave
----- Original Message -----
From: <raphael.bossek_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Friday, May 04, 2001 2:10 AM
Subject: [boost] BPL and virtual functions (compiler error)

> hi all,
>
> trying to abstract my class with virtual methods and running in
> trouble with following compiler errors. It would be helpful if
> someone could tell me what wrong with in?
>
> /usr/src/projects/ivm/usr/include/boost/python/detail/extension_class.hpp:
> In method
>
`boost::python::detail::instance_value_holder<speechdesign::PlayWaveStream,s
peechdesign::PythonPlayWaveStream::Callback>::instance_value_holder<boost::p
ython::detail::reference_parameter<const
> char *const &> >(boost::python::detail::extension_instance *,
> boost::python::detail::reference_parameter<const char *const &>)':
>
/usr/src/projects/ivm/usr/include/boost/python/detail/init_function.hpp:265:
> instantiated from
>
`boost::python::detail::init1<boost::python::detail::instance_value_holder<s
peechdesign::PlayWaveStream,speechdesign::PythonPlayWaveStream::Callback>,co
nst
> char *const
> &>::create_holder(boost::python::detail::extension_instance *,
> PyObject *, PyObject *) const'
>
/usr/src/projects/ivm/usr/include/boost/python/detail/extension_class.hpp:22
7:
> instantiated from here
>
/usr/src/projects/ivm/usr/include/boost/python/detail/extension_class.hpp:74
3:
> no matching function for call to
> `speechdesign::PythonPlayWaveStream::Callback::Callback
> (boost::python::detail::extension_instance *&,
> boost::python::detail::reference_parameter<const char *const &> &)'
> PythonPlayWaveStream.cpp:78: candidates are:
> speechdesign::PythonPlayWaveStream::Callback::Callback(PyObject *)
> PythonPlayWaveStream.cpp:84:
> speechdesign::PythonPlayWaveStream::Callback::Callback(PyObject *,
> speechdesign::PlayWaveStream &)
> PythonPlayWaveStream.hpp:131:
> speechdesign::PythonPlayWaveStream::Callback::Callback(const
> speechdesign::PythonPlayWaveStream::Callback &)
>
>
> To unsubscribe, send email to: <mailto:boost-unsubscribe_at_[hidden]>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>


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