FixedString gets comparisons with folly::Range and hence with std::string
authorEric Niebler <eniebler@fb.com>
Fri, 5 May 2017 21:10:47 +0000 (14:10 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 5 May 2017 21:20:47 +0000 (14:20 -0700)
commit90230f140b4b4cb350d087c79af30eceb21e8d41
treeb066e0975b2718e4fa86857a770464f27c52d66a
parent0917b8bd56401f43683061111d91a7cf0b194491
FixedString gets comparisons with folly::Range and hence with std::string

Summary: It should be possible to perform simple comparison operations between a FixedString and a std::string. By adding asymmetric comparison operators with FixedString and Range, we make FixedString comparable with anything convertible to Range, including std::string.

Reviewed By: yfeldblum

Differential Revision: D5007704

fbshipit-source-id: fee89d8807ac2d5378eec0d0a51eb8684976a271
folly/FixedString.h
folly/test/FixedStringTest.cpp