Skip to content

Commit

Permalink
Merge pull request #338 from python-greenlet/issue335
Browse files Browse the repository at this point in the history
Add the rebind member to the allocator.
  • Loading branch information
jamadden committed Jan 26, 2023
2 parents 8a6d691 + 86c4e2a commit 60c3a3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- Fix calling ``greenlet.settrace()`` with the same tracer object that
was currently active. See `issue 332
<https://github.com/python-greenlet/greenlet/issues/332>`_.

- Various compilation and standards conformance fixes. See #335, #336.


2.0.1 (2022-11-07)
Expand Down
5 changes: 5 additions & 0 deletions src/greenlet/greenlet_allocator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ namespace greenlet
else
PyMem_Free(p);
}
// This member is deprecated in C++17 and removed in C++20
template< class U >
struct rebind {
typedef PythonAllocator<U> other;
};

};
}
Expand Down

0 comments on commit 60c3a3a

Please sign in to comment.