Support unique_ptr instances with custom deleters in to_shared_ptr
authorYedidya Feldblum <yfeldblum@fb.com>
Mon, 14 Sep 2015 17:21:23 +0000 (10:21 -0700)
committerfacebook-github-bot-4 <folly-bot@fb.com>
Mon, 14 Sep 2015 18:20:20 +0000 (11:20 -0700)
commit0fe785ba8cc9aa178e6c96b389fe585a023b43e6
tree6dcbb300f3967f826448dc62d94ecefbe9e801a4
parent5db15d5688dcbe6f2b7ebcb7c4ad80c8f1b528f1
Support unique_ptr instances with custom deleters in to_shared_ptr

Summary: [Folly] Support `unique_ptr` instances with custom deleters in `to_shared_ptr`.

We now support `unique_ptr<T, D>` rather than just `unique_ptr<T>`.

Reviewed By: @lbrandy

Differential Revision: D2438217
folly/Memory.h
folly/test/MemoryTest.cpp