2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 05:22:45 +00:00

const-ified list::size() and slice_proxy::size()

[SVN r11212]
This commit is contained in:
Dave Abrahams
2001-09-22 17:51:10 +00:00
parent c7f1c5e29c
commit e552607c95
2 changed files with 4 additions and 4 deletions

View File

@@ -362,7 +362,7 @@ bool list::accepts(ref p)
return PyList_Check(p.get());
}
std::size_t list::size()
std::size_t list::size() const
{
return PyList_Size(get());
}
@@ -467,7 +467,7 @@ list::slice_proxy::operator list() const
return list(this->operator ref());
}
std::size_t list::slice_proxy::size()
std::size_t list::slice_proxy::size() const
{
return this->operator list().size();
}