[C++-sig] Creating a python class from c++

Stefan Seefeld seefeld at sympatico.ca
Sat Nov 18 18:24:43 CET 2006


James Healey wrote:

> Also this line:
> bpl::dict global = main.attr("__dict__");
> 
> doesnt compile and switched it with:
> boost::python::object global(main.attr("__dict__"));
> 
> it gave the error:
> error C2440: 'initializing' : cannot convert from
> 'boost::python::api::object_attribute' to
> 'boost::python::dict'
>         Constructor for class 'boost::python::dict' is
> declared 'explicit'
> 
> 
> Every thing works as asked in my original question.

Good !

Regards,
		Stefan


-- 

      ...ich hab' noch einen Koffer in Berlin...



More information about the Cplusplus-sig mailing list