Commit 694a416e authored by Giuseppe Ottaviano's avatar Giuseppe Ottaviano Committed by Facebook GitHub Bot

Ensure that Function is noexcept-destructible

Reviewed By: yfeldblum, philippv, luciang

Differential Revision: D26832361

fbshipit-source-id: 9f67a0af8c3c939cbfda1bd46806849e164e5354
parent 94465a38
...@@ -72,6 +72,8 @@ TEST(FunctionRef, Traits) { ...@@ -72,6 +72,8 @@ TEST(FunctionRef, Traits) {
FunctionRef<int(int)>, FunctionRef<int(int)>,
FunctionRef<int(int)>&>::value, FunctionRef<int(int)>&>::value,
""); "");
static_assert(std::is_nothrow_destructible<FunctionRef<int(int)>>::value, "");
} }
TEST(FunctionRef, Simple) { TEST(FunctionRef, Simple) {
......
...@@ -187,6 +187,8 @@ static_assert( ...@@ -187,6 +187,8 @@ static_assert(
""); "");
#endif #endif
static_assert(std::is_nothrow_destructible<Function<int(int)>>::value, "");
// TEST ===================================================================== // TEST =====================================================================
// InvokeFunctor & InvokeReference // InvokeFunctor & InvokeReference
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment