From: Dhruv Matani Date: Wed, 5 Feb 2014 06:15:15 +0000 (-0800) Subject: Replace CHECK_GT with DCHECK_GT in folly::Range::operator[] X-Git-Tag: v0.22.0~706 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=34922793814187e67ee05bc9f2759362238b1b66;p=folly.git Replace CHECK_GT with DCHECK_GT in folly::Range::operator[] Summary: Since I don't want to pay the cost when we access array elements. If I did, I would just use Java. Test Plan: fbconfig folly/test/ && fbmake runtests Reviewed By: andrei.alexandrescu@fb.com FB internal diff: D1158505 --- diff --git a/folly/Range.h b/folly/Range.h index 6aba60be..f692b75a 100644 --- a/folly/Range.h +++ b/folly/Range.h @@ -323,12 +323,12 @@ public: } value_type& operator[](size_t i) { - CHECK_GT(size(), i); + DCHECK_GT(size(), i); return b_[i]; } const value_type& operator[](size_t i) const { - CHECK_GT(size(), i); + DCHECK_GT(size(), i); return b_[i]; }