Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: message_t could be easier to construct and is missing equal not equal operators #203

Merged
merged 2 commits into from
Apr 14, 2018

Conversation

kurdybacha
Copy link
Contributor

  • Added overload constructor (c++11 only) taking iteratable object.
    It would be easier to use std::string, std::array etc to construct
    a message now. Making it a draft for now in case it is too greedy
    and needs to be more specialize.
  • Added equal and not euqal operator to message_t as a recommended
    and expected way of comparing objects in C++.
  • deprecated C style equal method as operator== should be used instead
    (point above).
  • Added message_t test covering all available message_t's constructors
    and equal, not equal operators.

* Added overload constructor (c++11 only) taking iteratable object.
  It would be easier to use std::string, std::array etc to construct
  a message now. Making it a draft for now in case it is too greedy
  and needs to be more specialize.
* Added equal and not euqal operator to message_t as a recommended
  and expected way of comparing objects in C++.
* deprecated C style equal method as operator== should be used instead
  (point above).
* Added message_t test covering all available message_t's constructors
@coveralls
Copy link

coveralls commented Apr 14, 2018

Pull Request Test Coverage Report for Build 24

  • 4 of 5 (80.0%) changed or added relevant lines in 1 file are covered.
  • 22 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+3.6%) to 58.462%

Changes Missing Coverage Covered Lines Changed/Added Lines %
zmq.hpp 4 5 80.0%
Files with Coverage Reduction New Missed Lines %
zmq.hpp 22 67.12%
Totals Coverage Status
Change from base Build 22: 3.6%
Covered Lines: 38
Relevant Lines: 65

💛 - Coveralls

@bluca bluca merged commit a186ed6 into zeromq:master Apr 14, 2018
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.

3 participants