ParentFull threadmaccard·I'm not advocating writing any code like this, but you can have an overloaded == operator that _does_ have side effects, e.g. [0][0] https://ideone.com/eJgiN9View on HN