|
Boost Users : |
From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-07-05 10:24:30
Thanks, fixed in CVS
----- Original Message -----
From: "J.Flenter" <yg-boost-users_at_[hidden]>
> Hello,
> This is my first post here, but I found some code that generated an error
> using Visual Studio 6.0 (with Service Pack 5):
>
> The documentation (url:
> http://www.boost.org/libs/python/doc/inheritance.html) said:
>
> [snip]
> base_class.def(python::constructor<void>());
> [snip]
> when I use void at that location the compiler generates an error
(although
> it
> does work without specifying the keyword void). The error is:
>
> c:\BOOST\boost/python/detail/init_function.hpp(319) : error C2440: 'type
> cast' : cannot convert from 'void' to 'class
> boost::python::detail::reference_parameter<void>'
> Expressions of type void cannot be converted to other types
> c:\BOOST\boost/python/detail/init_function.hpp(314) : while
> compiling class-template member function 'class
> boost::python::detail::instance_holder_base *__thiscall
> boost::python::detail::init1<class
> boost::python::detail::instance_value_hold
>
> I do use a different class (included as a zip file), but in this case I
> don't think
> that will generate the compiler error.
>
> I hope this makes it clear...
>
> Jacco Flenter
>
>
>
>
>
---------------------------------------------------------------------------
-----
>
>
>
>
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