[C++-sig] intrusive pointer comparison in python
amohr at pixar.com
Thu Oct 5 00:32:30 CEST 2006
> Unfortunately, the class that I'm using isn't comparable, I'm bassically looking for a direct comparison of the held pointers.
That's what I said. Have it compare the pointers.
template <typename Ptr>
static bool are_ptrs_equal(Ptr const &self,
Ptr const &other)
return self == other;
> I'm not sure what you mean by "objects that are exposed to python polymorphically", can you please elaborate?
More information about the Cplusplus-sig