CopernicaMarketingSoftware / AMQP-CPP

C++ library for asynchronous non-blocking communication with RabbitMQ
Apache License 2.0
864 stars 334 forks source link

`operator==` of Address is wrong #489

Closed bmario closed 1 year ago

bmario commented 1 year ago

Describe the bug The comparison operator returns false for equal Address objects. In particular, even a self-compare will return false.

Expected behavior and actual behavior operator== should return true for equal Address objects.

Sample code This line should be like this:

        if (_vhost != that._vhost) return false;