2
0
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:
Raoul Gough
2003-09-09 20:57:22 +00:00
parent 8e5400b8e4
commit c63819dba9

View File

@@ -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));
}