-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60836/
-----------------------------------------------------------

(Updated Aug. 22, 2017, 6:56 p.m.)


Review request for mesos, Qian Zhang and Jiang Yan Xu.


Summary (updated)
-----------------

Added IntervalSet to Ranges conversion helpers.


Bugs: MESOS-7675
    https://issues.apache.org/jira/browse/MESOS-7675


Repository: mesos


Description (updated)
-------

Added a new `common/values.hpp` header file to expose IntervalSet
to Ranges conversion helper declarations.

The most common use of Range resources is for representing network
ports. Since ports are bounded to uint16_t it is awkward to store
them in a IntervalSet<uint64_t>. To address this, convert the
IntervalSet helpers to templates so that we can convert between
IntervalSets of the appropriate type.


Diffs (updated)
-----

  src/Makefile.am 38167a97bd746517a1b17bd864eb0c4fe8a33996 
  src/common/values.hpp PRE-CREATION 
  src/common/values.cpp 1ac327f787b0d0ab7c704d747c0294b022e59625 
  src/tests/values_tests.cpp 1ce9c485fa2c3ec98b5f81972472c73c82635a2b 


Diff: https://reviews.apache.org/r/60836/diff/7/

Changes: https://reviews.apache.org/r/60836/diff/6-7/


Testing
-------

make check (Fedora 26)


Thanks,

James Peach

Reply via email to