inline bool operator==(const weak_ptr<_type1>& x, const weak_ptr<_type2>& y) { return !x.owner_before(y) && !y.owner_before(x); }
bool isSame(const weak_ptr<ofxWidget> &lhs, const weak_ptr<ofxWidget>&rhs) { return (!lhs.expired() && !rhs.expired() && (!rhs.owner_before(lhs) && !lhs.owner_before(rhs))); }