Remove unnecessary constraint from Range subpiece constructor
Summary: D1746899 enforced the constraint (previously in a comment) on the constructor `Range(const Range&, size_t, size_t)` that `Iter` is a `const char*`. There is however no reason for this constraint. This patch generalizes and simplifies the constructor, and since it has the same semantics as `subpiece`, the latter is implemented in terms of the constructor. Test Plan: fbconfig -r folly && fbmake runtests_opt Reviewed By: soren@fb.com Subscribers: trunkagent, folly-diffs@ FB internal diff: D1747958 Signature: t1:1747958:1418930360:fcd6beeda34e64ec8a34b9491a57674ae2265596
Showing
Please register or sign in to comment