(Folly/FBString) Use a lambda to throw an exception for NULL input
authorHannes Roth <hannesr@fb.com>
Thu, 27 Mar 2014 21:47:00 +0000 (14:47 -0700)
committerDave Watson <davejwatson@fb.com>
Mon, 31 Mar 2014 17:44:58 +0000 (10:44 -0700)
commit72c2a0d3b47de74dd56b6750922e54ef333b4cbd
tree68a127102a4924a16eecc9dca34ee277411a78f5
parent52fceaf485e63d459d2df5858ffdbeaafe851dbf
(Folly/FBString) Use a lambda to throw an exception for NULL input

Summary:
This should be standard compliant. `__PRETTY_FUNCTION__` seems
unnecessary, it just prints `basic_fbstring`, might as well use that and
simplify the code.

Test Plan:
`fbconfig --platform-all=gcc-4.8.1-glibc-2.17-fb folly/test`
`fbmake runtests_dbg`
`fbmake runtests_opt`

`fbconfig --platform-all=gcc-4.7.1-glibc-2.14.1 folly/test`
`fbmake runtests_dbg`
`fbmake runtests_opt`

`fbconfig --clang folly/test`
`...`

Reviewed By: andrei.alexandrescu@fb.com

FB internal diff: D1243670
folly/FBString.h