CopernicaMarketingSoftware/AMQP-CPP

`operator==` of Address is wrong

Closed this issue · 0 comments

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;