Malloc cannot include ScopeGuard
authorNicholas Ormrod <njormrod@fb.com>
Fri, 26 Sep 2014 22:19:51 +0000 (15:19 -0700)
committerDave Watson <davejwatson@fb.com>
Tue, 30 Sep 2014 23:15:53 +0000 (16:15 -0700)
commit23d9f0ec3e82fab12760bee8ae5f2abca526e120
treeaf87448735b4b514f6140df2312388644867ae32
parentb97197908f9ffa978dd9150a621c33b4f7ba4747
Malloc cannot include ScopeGuard

Summary:
Because we put FBString and Malloc into libgcc, we have to be
careful which dependencies they each have. We cannot include ScopeGuard.
Reorganize the code a bit to avoid the ScopeGuard.

Test Plan: fbconfig -r folly && fbmake runtests

Reviewed By: je@fb.com

Subscribers: trunkagent, sdwilsh, njormrod

FB internal diff: D1580957
folly/Malloc.h