Re: [Boost-bugs] [Boost C++ Libraries] #1952: The operation static_cast<std::string>(boost::python::extract<std::string>(...)) crashes Python. Seems to create reference counting problem.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1952: The operation static_cast<std::string>(boost::python::extract<std::string>(...)) crashes Python. Seems to create reference counting problem.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-05-27 19:43:45


#1952: The operation
static_cast<std::string>(boost::python::extract<std::string>(...)) crashes
Python. Seems to create reference counting problem.
---------------------------------------------------------------------+------
  Reporter: Konstantin Aslanidi <konstantin.aslanidi_at_[hidden]> | Owner: dave
      Type: Bugs | Status: assigned
 Milestone: Boost 1.36.0 | Component: Python
   Version: Boost 1.35.0 | Severity: Showstopper
Resolution: | Keywords: python extract
---------------------------------------------------------------------+------
Comment (by Konstantin Aslanidi <konstantin.aslanidi_at_[hidden]>):

 Please, see the newly submitted correction.

 Replying to [comment:2 dave]:
> suppose you replace
> {{{
> static_cast<std::string>(boost::python::extract<std::string>(...))
> }}}
> with
> {{{
> boost::python::extract<std::string>(...)() // note extra parens
> }}}
>
> If the static_cast fails but my replacement works, I think you need to
 file a bug report with your compiler vendor.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1952#comment:4>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC