[C++-sig] Re: Problem with Extract conversion

David Abrahams dave at boost-consulting.com
Tue Jun 3 19:00:36 CEST 2003

"Dmitri Mouromtsev" <dimour at mail.ru> writes:

> Hello all!
> I am embedding Python in my application by using BOOST.PYTHON. I tried 
> to compile in MSVC 7.0 the example with extract<> conversion:
> boost::python::str test_str("test");
> char const* c_str = extract<char const*>(test_str);
>  If I run this code an unhandled exception rise when the function
> throw_no_lvalue_from_python compose error message "No registered converter
> was able to extract a C++...".
>  What I need to do and what is my mistake.

Please post a small, complete program which reproduces your problem.

Dave Abrahams
Boost Consulting

More information about the Cplusplus-sig mailing list