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:
http://www.boost.org/more/mailing_lists.htm#cplussig

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net