StringPiece comparisons are broken
authorTudor Bosman <tudorb@fb.com>
Mon, 24 Jun 2013 19:48:43 +0000 (12:48 -0700)
committerJordan DeLong <jdelong@fb.com>
Wed, 26 Jun 2013 02:46:59 +0000 (19:46 -0700)
commita664fa91fed10a492ec4560f3e97a4e1b8c7e59d
tree98ee42c3305e7d960eae54ee257fd3cea0f2c033
parent753903f3f4f8ab65b503df445951e756a73d70f6
StringPiece comparisons are broken

Summary:
8-bit StringPiece comparisons are broken.
The reason is char_traits is magic for 'char', but not 'const char'.

Test Plan: test added

Reviewed By: chip@fb.com

FB internal diff: D861521
folly/Range.h
folly/test/RangeTest.cpp