Fix darwin and hphp build failures for PrimaryPtr.
Summary: On darwin with Xcode, deleter for a shared_ptr is passed by copying the whole lambda, causing issues when building PrimaryPtr. In this diff we try to work around this problem by putting the last promise value on the heap while sharing the control block with the shared_ptr exposed to user. Reviewed By: yfeldblum Differential Revision: D27354087 fbshipit-source-id: 9cb23912c9f1058505f3c20384eb998233eba2da
Showing
Please register or sign in to comment