|
custom less than operator? to_python_converter for multiple destination typ: msg#00354python.c++
So, I'm wrapping a class that defines "<" as an internal class with a bool operator() like so: struct Baz { struct Less { bool operator() (const Baz& a, const Baz& b) const; } }; Inconveniently, it also does NOT define operator < in Baz. How would I wrap this to make Baz objects in Python use Baz::Less::operator() as the < operator? -- Gavin Doughtie DreamWorks SKG (818) 695-3821 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Support for Indexing and Iteration Safety: 00354, Brett Calcott |
|---|---|
| Next by Date: | Re: [newbie] Question on embedding/extending with boost::python: 00354, Dirk Gerrits |
| Previous by Thread: | [newbie] Failing to test boost.python under cygwini: 00354, Gilles Orazi |
| Next by Thread: | Re: custom less than operator? to_python_converter for multiple destination types?: 00354, David Abrahams |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |