The workaround is to manually exclude the "sort" method from the implementation.

Where c is an instance of pyplusplus.decl_wrappers.typedef_wrapper.typedef_t representing Container, insert the following line into your code generation script:

I don't know why "indexing_suite" is not an attribute of the pyplusplus.decl_wrappers.typedef_wrapper.typedef_t class.

I found this workaround in the following post: