Fix the example for folly::static_function_deleter.
authorYedidya Feldblum <yfeldblum@fb.com>
Wed, 26 Aug 2015 08:57:57 +0000 (01:57 -0700)
committerSara Golemon <sgolemon@fb.com>
Mon, 31 Aug 2015 20:24:47 +0000 (13:24 -0700)
commit148045d0d4ce7145d6fa90f76a132c6bfb1efcb3
treee0dc3af1b9cc8bd4d14b47be6ffe6c2da1ed556c
parent3a6c9d3896badace174e6933c0a764f740e921c8
Fix the example for folly::static_function_deleter.

Summary: [Folly] Fix the example for folly::static_function_deleter.

The problem is that

    int BIO_free(BIO*)

is not directly compatible.

So have two examples. One using `RSA_free` which is compatible, and one making a compatible wrapper around `BIO_free`.

Reviewed By: @Gownta

Differential Revision: D2381125
folly/Memory.h