Make folly::allocator_delete take advantage of EBO
authorJordan DeLong <jdelong@fb.com>
Sun, 2 Jun 2013 03:55:24 +0000 (20:55 -0700)
committerSara Golemon <sgolemon@fb.com>
Tue, 4 Jun 2013 20:57:20 +0000 (13:57 -0700)
commit79345bbc341c43e41ce9314193dae8674e3eb89c
tree7f49c2d7caaf06dbba66671560a1116a671c390b
parent1b68b53f887d73ac6619cd2d64f87039263f96ef
Make folly::allocator_delete take advantage of EBO

Summary: It wasn't.

Test Plan:
I have a case using this that now passes a static_assert
that it's the same size as the default_deleter version.  I didn't add
a static_assert in folly's tests because right now
is_simple_allocator<int,std::allocator<int>>::value is true (I think
because the tested members come from a base class), which breaks easy
test cases.

Reviewed By: andrei.alexandrescu@fb.com

FB internal diff: D833142
folly/Memory.h
folly/test/ArenaSmartPtrTest.cpp