2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 18:12:43 +00:00

Workarounds for VC6 bugs

[SVN r19389]
This commit is contained in:
Dave Abrahams
2003-07-31 15:56:10 +00:00
parent f01ff3a277
commit bfa868a440

View File

@@ -147,7 +147,7 @@ namespace boost { namespace python {
if (PyObject* shared =
container_element_t::get_links().find(container.get(), idx))
{
return extract<object>(shared);
return extract<object>(shared)();
}
else
{
@@ -315,7 +315,7 @@ namespace boost { namespace python {
std::vector<Element> temp;
for (int i = 0; i < l.attr("__len__")(); i++)
{
object elem = l[i];
object elem(l[i]);
extract<Element const&> x(elem);
// try if elem is an exact Element type
if (x.check())