Skip to content

Conversation

gummif
Copy link
Member

@gummif gummif commented Mar 26, 2019

zmq_poll mutates the input array, so have const qualifiers for the poll functions does not make sense.

Solution: Remove const qualifiers and const_cast

@coveralls
Copy link

coveralls commented Mar 26, 2019

Pull Request Test Coverage Report for Build 172

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.01%) to 45.795%

Totals Coverage Status
Change from base Build 171: -0.01%
Covered Lines: 1933
Relevant Lines: 4221

💛 - Coveralls

@kurdybacha
Copy link
Contributor

I agree with the changes but that unfortunately breaks API compatibility so we can not change it right now. We can add them as a separate functions though.

Solution: Remove const qualifiers and const_cast
@gummif
Copy link
Member Author

gummif commented Mar 27, 2019

That's true. I added overloads taking non-const items, and make the const functions deprecated. Hopefully the deprecation message is alright.

@sigiesec sigiesec merged commit 9e03629 into zeromq:master Mar 28, 2019
@sigiesec
Copy link
Member

Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants