2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 17:32:55 +00:00

Fix inspection issues

[SVN r35239]
This commit is contained in:
Dave Abrahams
2006-09-21 02:40:19 +00:00
parent e527bc860f
commit e00a88ff49
4 changed files with 12 additions and 10 deletions

View File

@@ -29,8 +29,12 @@ struct implicit
static void construct(PyObject* obj, rvalue_from_python_stage1_data* data)
{
void* storage = ((rvalue_from_python_storage<Target>*)data)->storage.bytes;
arg_from_python<Source> get_source(obj);
bool convertible = get_source.convertible();
BOOST_ASSERT(convertible);
new (storage) Target(extract<Source>(obj)());
new (storage) Target(get_source());
// record successful construction
data->convertible = storage;