constexpr_strlen works for types other than char. Remove bogus check for nullptr.
authorEric Niebler <eniebler@fb.com>
Mon, 5 Dec 2016 21:06:16 +0000 (13:06 -0800)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Mon, 5 Dec 2016 21:08:26 +0000 (13:08 -0800)
commitdd9cce3051a5bed81e549e8ef39deb4aee23db8d
tree4a3a53dc29d128f59acd3cc886124765a28a6143
parent87efa7eedee6e11a9c6083726a2de855891052b0
constexpr_strlen works for types other than char. Remove bogus check for nullptr.

Summary: overload constexpr_strlen to work with other character types

Reviewed By: yfeldblum, luciang, Orvid, ot

Differential Revision: D4269654

fbshipit-source-id: 2fcd666669efb51d77e847ff31bda3a301e763da
folly/portability/Constexpr.h