Merge pull request #1847 from stac47/fix_1846

Fix recursive operator== call in C++20 (#1846)