Assorted tweaks to folly/String.h
authorYedidya Feldblum <yfeldblum@fb.com>
Tue, 12 Dec 2017 04:19:06 +0000 (20:19 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 12 Dec 2017 04:22:11 +0000 (20:22 -0800)
commitc01c18b26eded07d11079a77d3df36a57fd4bf16
treea0088e7f7d66e8b273938780b99a57d28d123cb0
parent3764b633f977129f8ee3bca60db7c5d1bb969eec
Assorted tweaks to folly/String.h

Summary:
[Folly] Assorted tweaks to `folly/String.h`.

* Use `void_t` in the definition of `IsConvertible`.
* Remove `AllConvertible`. Callers can use `StrictConjunction` instead.
* Move the `static_assert`s from the header to the source file.

Reviewed By: andrewjcg, ot

Differential Revision: D6501515

fbshipit-source-id: 472ecf23bf7f06be211480b0aceea95f7e60dc21
folly/String-inl.h
folly/String.cpp
folly/String.h