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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user