我被告知可以从任何boost::python::object中提取对基类的引用。pass
boost::python::object obj; // It points to some Der class object made from python
boost::shared_ptr<Object> temp = extract
(Q1)正如预期的那样,代码片段2为变量的地址和指针(在本例中为0x7ffec1620d40)提供了相同的值。但是,如何解释代码片段1中产生两个不同地址的类似代码呢?(0xc2feb8 vs 0x7ffec1620d68)这两个地址在内存中的关系是什么?std::string* string_ptr_any
/any.hpp:243:16: runtime error: downcast of address 0x000001153fb0 which does not point to an objectof type 'holder' 00 00 00 00 20 bcwhich does not point t