Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2004-01-26 20:10:55

Jeff Holle <jeff.holle_at_[hidden]> writes:

> 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?

Once again, Jeff, please post Boost.Python questions to the C++-sig:

Dave Abrahams
Boost Consulting

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at