folly::Optional<T> should be trivially destructible when T is
authorBrett Simmers <bsimmers@fb.com>
Tue, 16 Feb 2016 05:51:35 +0000 (21:51 -0800)
committerfacebook-github-bot-0 <folly-bot@fb.com>
Tue, 16 Feb 2016 06:20:25 +0000 (22:20 -0800)
commite2fe17aecbab23842517ffec8273ff5ba12e8681
treeebf272e354f4e610245bf80bd8442cfba11d28ee
parent030427e249e9257008fa9ccb88c0d996fd04b40f
folly::Optional<T> should be trivially destructible when T is

Summary:There doesn't appear to be a way to use std::enable_if on a
destructor, so conditionally select from one of two storage types.

Reviewed By: yfeldblum

Differential Revision: D2923902

fb-gh-sync-id: 2def8d1031d70379fd84e8eb555dad9d2b4996f2
shipit-source-id: 2def8d1031d70379fd84e8eb555dad9d2b4996f2
folly/Optional.h
folly/test/OptionalTest.cpp