Disallow nullptr literal in StringPiece constructor
authorAnton Likhtarov <alikhtarov@fb.com>
Tue, 3 Nov 2015 18:45:21 +0000 (10:45 -0800)
committerfacebook-github-bot-1 <folly-bot@fb.com>
Tue, 3 Nov 2015 19:20:21 +0000 (11:20 -0800)
commit82ba5835fb134d84cf15f23d2a1eb3ba93858385
tree8f1c782995897a48a938a08919cffb3c12a3cf20
parent89e6ee60da8c157f32fcc6b8ce727c292de77e15
Disallow nullptr literal in StringPiece constructor

Summary: This disallows implicitly constructing a StringPiece from a literal nullptr at compile time
(without this change, nullptr would cause a segfault in strlen()).

Reviewed By: meyering, andriigrynenko

Differential Revision: D2603597

fb-gh-sync-id: cafbc45945bacc72a7c89310b99aa62d19a3ff9f
folly/Conv.h
folly/Range.h