[C++-sig] Regression in Boost.Python v1.33

David Abrahams dave at boost-consulting.com
Sat Oct 1 01:01:42 CEST 2005


"Niall Douglas" <s_sourceforge at nedprod.com> writes:

> On 30 Sep 2005 at 7:49, David Abrahams wrote:
>
>> No, all the tests passed for vc7.1 upon release of 1.33.0, so it's
>> surprising to see a problem here.  Do you have any idea what T is in
>> this case?  A full instantiation backtrace might help.
>
> Here's the testcase:
>
> #include "boost/python.hpp"
>
> using namespace boost::python;
>
> typedef void *FXID;
>
> class FXWindow
> {
> public:
> 	void attach(FXID w) { }
> };
>
> int main(void)
> {
>     class_<FXWindow>("FXWindow")
>         .def("attach", &FXWindow::attach);
> 	return 0;
> }
>
> This compiles on v1.32 but not v1.33. Here's the compiler error:

You yourself said that void* isn't supported:

  http://www.boost.org/libs/python/doc/v2/faq.html#voidptr

Are you sure that this change is portable, or is it just exploiting a
vc7.1 bugfeature?

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com




More information about the Cplusplus-sig mailing list