Apart from assinging a string
passing a "longer" string to a function does not work either.

example:

void createNavi(std::string naviname,std::string url,RelativePosition
pos,int sizeX,int sizeY);

class_<NaviManagerWrapper,boost::noncopyable>("PyNaviManager")
        .def("createNavi", &NaviManagerWrapper::createNavi) ;


in python fail line:

pyNaviManager.createNavi("activation","local://activation.html",Center,800,400)


I think the second parameter "local://activation.html" can not be converted
to std::string.


Regards,



On Fri, Oct 17, 2008 at 5:46 PM, Furkan Kuru <[EMAIL PROTECTED]> wrote:

>
> Yes, that seems very likely; this looks a bit like the small string
>> optimization gone awry.  Perhaps you have mixed the MS runtime lib
>> headers with a different version of the binary library.
>>
>>
>
> Is there any way to remove this string optimization. Or How can I trace and
> find these mixed headers to fix the problem?
>
>
> --
> Furkan Kuru
>



-- 
Furkan Kuru
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to