folly/Malloc.h: use libstdc++-safe exception wrappers
authorAndrew Gallagher <agallagher@fb.com>
Wed, 11 Jul 2012 21:03:19 +0000 (14:03 -0700)
committerTudor Bosman <tudorb@fb.com>
Fri, 13 Jul 2012 23:29:17 +0000 (16:29 -0700)
commit25189ad927271b3df46ea9b684566d78d5ff129f
tree765dea7dc8929ce244cc09e5b0a1fe56003f3384
parent5eeb75092e8eb24798907a39381f64c3404cbe56
folly/Malloc.h: use libstdc++-safe exception wrappers

Summary:
gcc errors out when code that throws is compiled with
'-fno-exceptions'.  Since we add Malloc.h into our custom libstdc++
use the exception wrappers from functexcept.h so that they can build
with third-party projects that use '-fno-exceptions'.

Test Plan:
Built llvm in the gcc-4.7.1-glibc-2.14.1-fb platform with these
changes.

Reviewed By: tudorb@fb.com

FB internal diff: D516577
folly/Malloc.h