[C++-sig] vector_indexing_suite issue
Jeff Holle
jeff.holle at verizon.net
Mon Jan 26 21:19:52 CET 2004
I am successfully using vector_indexing_suite in following code:
class_<std::vector<B> >("vector_B")
.def(vector_indexing_suite<std::vector<B> >())
;
However, I find that it requires that the B class conforms to the
Equality Comparable concept where the STL standard only demands it to
conform to the Assignable concept.
I'm wondering if this is necessary, and if so how the operator== method
should be coded.
Can it simply always return true or false?
Or compare "this" pointers?
More information about the Cplusplus-sig
mailing list