Clang support for constexpr StringPiece constructor
authorGiuseppe Ottaviano <ott@fb.com>
Thu, 22 Oct 2015 19:11:59 +0000 (12:11 -0700)
committerfacebook-github-bot-1 <folly-bot@fb.com>
Thu, 22 Oct 2015 20:20:21 +0000 (13:20 -0700)
commitd1027eb286433b5726e6778ee3a7ed85e4ca23d0
treeef569c02903236e1d4234440bf62757da989ef0c
parent50b33d29c25c9cb33ff61988a6fc16ec1a25e6d0
Clang support for constexpr StringPiece constructor

Summary: Clang's `strlen` is not `constexpr`, but `__builtin_strlen` is, so we can have an unconditional `constexpr` `StringPiece` constructor.

Reviewed By: luciang, yfeldblum

Differential Revision: D2561782

fb-gh-sync-id: 51e76a0d50355cc5ead1148ba2389b640a6888de
folly/Portability.h
folly/Range.h
folly/test/RangeTest.cpp