mirror of
https://github.com/boostorg/python.git
synced 2026-01-21 05:02:17 +00:00
Define two overloads for __getitem__ in index_style_linear specialization
[SVN r1517]
This commit is contained in:
@@ -60,6 +60,7 @@ namespace indexing {
|
||||
, Algorithms const &
|
||||
, Policy const &policy)
|
||||
{
|
||||
pyClass.def ("__getitem__", &Algorithms::get, policy);
|
||||
pyClass.def ("__getitem__"
|
||||
, slice_handler<Algorithms, Policy>::make_getitem (policy));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user