Commit a3e63b14 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook GitHub Bot

Explicitly enforce that RequestToken is trivially-destructible

Summary:
[Folly] Explicitly enforce that `RequestToken` is trivially-destructible to permit its use as a Meyers Singleton without requiring the use of Leaky Meyers Singleton to avoid destruction-order problems.

(Note: this ignores all push blocking failures!)

Differential Revision: D21533605

fbshipit-source-id: fe334fd5257b1d0a07efd849c4532b28801e54c4
parent 7c0d945b
...@@ -55,6 +55,9 @@ class RequestToken { ...@@ -55,6 +55,9 @@ class RequestToken {
uint32_t token_; uint32_t token_;
}; };
static_assert(
std::is_trivially_destructible<RequestToken>::value,
"must be trivially destructible");
} // namespace folly } // namespace folly
......
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