mirror of
https://github.com/boostorg/python.git
synced 2026-01-23 05:42:30 +00:00
Updated to use BoundFunction::create() optimization
[SVN r8223]
This commit is contained in:
@@ -343,7 +343,7 @@ PyObject* Instance::getattr(const char* name, bool use_special_function)
|
||||
}
|
||||
else
|
||||
{
|
||||
return new BoundFunction(Ptr(this, Ptr::borrowed), class_attribute);
|
||||
return BoundFunction::create(Ptr(this, Ptr::borrowed), class_attribute);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user