Hi John,
Don't know exactly what I need to do, I have looked at re-writing
the class, but before I do, I wanted to make sure no one has attempted
to get octave compiled with the Sun Studio compilers.
stlport4 tells the Sun compiler to use STLport's implementation of the
standard library, which seems to be ok with the cast as written.
I have tried this:
class pid_equal
{
public:
pid_equal (pid_t v) : val (v) { }
bool operator () (const octave_child& oc) const { return oc.pid == val; }
bool operator () (const pid_equal& pid) const { return pid == val ; }
private:
pid_t val;
};
but this generates:
"sighandlers.cc", line 892: Error: Overloading ambiguity between
"operator==(const octave_int<long long>&, const octave_int<unsigned>&)"
and "operator==(const octave_int<unsigned>&, const octave_int<char>&)".
Jim
/////////////////////////////