boostorg / python

Boost.org python module
http://boostorg.github.io/python
Boost Software License 1.0
465 stars 201 forks source link

`no_proxy_helper` should not access `Container::value_type` #419

Open MichaelSuen-thePointer opened 1 year ago

MichaelSuen-thePointer commented 1 year ago

see code here

Some containers may not provide proper value_type member, and the user can still manually passing its element type as Key or Data template parameter to indexing_suite. So indexing_suite already know the container's value type, and does not need containers to have ::value_type. Its detailed implementation should then directly reading it from indexing_suite, not from Container::value_type again.