| 142 | bool operator!=(const null &inRHS) const { return mPtr!=0; } |
| 143 | |
| 144 | bool operator == (const Dynamic &inRHS) const |
| 145 | { |
| 146 | // Comparing pointers fails in the case on Nan==Nan |
| 147 | //if (mPtr==inRHS.mPtr) return true; |
| 148 | if (!mPtr && !inRHS.mPtr) return true; |
| 149 | if (!mPtr || !inRHS.mPtr) return false; |
| 150 | return mPtr->__Compare(inRHS.mPtr)==0; |
| 151 | } |
| 152 | |
| 153 | bool operator != (const Dynamic &inRHS) const |
| 154 | { |