[C++-sig] Can't convert from class_ to scope in latest CVS!
David Abrahams
dave at boost-consulting.com
Mon Dec 2 13:51:29 CET 2002
Kerim Borchaev <warkid at hotbox.ru> writes:
> Hello ,
>
> i've checked out the CVS recently and found this strange bug(?) with
> scope:
>
> cannot convert from 'boost::python::class_<T,X1,X2,X3>::self' to 'boost::python::scope'
>
> here's the code:
>
> #include <boost/python/module.hpp>
> #include <boost/python/class.hpp>
> #include <boost/python/scope.hpp>
> using namespace boost::python;
>
> struct C{
> };
>
> BOOST_PYTHON_MODULE(hello)
> {
> scope s= class_<C>("C");
> }
>
> Best regards,
> Kerim mailto:warkid at hotbox.ru
http://aspn.activestate.com/ASPN/Mail/Message/C++-sig/1444827 explains
all.
However, I think I'll take out the explicit constructor, and maybe
even add an assignment operator, so that we don't have to go through
this again ;-/
--
David Abrahams
dave at boost-consulting.com * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution
More information about the Cplusplus-sig
mailing list