Re: [pygccxml-development] Boolean operator == with std::vector
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2009-12-06 14:34:57
|
On Sun, Dec 6, 2009 at 4:23 PM, Romain CHANU <rom...@gm...> wrote: > Hi, > I am using Py++ to generate the bindings for a C++ class using a vector of > objects (i.e std::vector<MyObject>) > I got this error: > "the next line of code will not compile, because "::MyObject" does not have > operator== !" > Could anyone tell me why I need to define this boolean operator? Do you use indexing suite, that comes with boost? If so, you need this operator for "contains", "index" and other functionality. You can switch to indexing suite v2 and than you will not have to define the operator. -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |