Commit ab893da3 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Revert StaticMeta deleted dtor

Summary: [Folly] Revert `StaticMeta` deleted dtor, which does not work well with standard constructibility tests like `std::is_constructible<StaticMeta<...>, ...>`.

Reviewed By: andriigrynenko

Differential Revision: D14181902

fbshipit-source-id: de75fe2fc864c9a32a74b8058532ef49412ac838
parent aa63328b
......@@ -402,7 +402,9 @@ struct StaticMetaBase {
bool strict_;
protected:
~StaticMetaBase() {}
[[noreturn]] ~StaticMetaBase() {
std::terminate();
}
};
// Held in a singleton to track our global instances.
......@@ -425,8 +427,6 @@ struct StaticMeta final : StaticMetaBase {
/*child*/ &StaticMeta::onForkChild);
}
~StaticMeta() = delete;
static StaticMeta<Tag, AccessMode>& instance() {
// Leak it on exit, there's only one per process and we don't have to
// worry about synchronization with exiting threads.
......
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