Skip to content

Commit

Permalink
Assert that MicroSpinLock is a POD type
Browse files Browse the repository at this point in the history
Summary: Because if it's not, all hell will break lose (apparently).

Reviewed By: meyering

Differential Revision: D3373061

fbshipit-source-id: f08a863d1bacadeeff9d9cea041f399f136cfc74
  • Loading branch information
Orvid authored and Facebook Github Bot 6 committed Jun 1, 2016
1 parent 9016ec6 commit 708998e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions folly/MicroSpinLock.h
Expand Up @@ -105,6 +105,9 @@ struct MicroSpinLock {
std::memory_order_relaxed);
}
};
static_assert(
std::is_pod<MicroSpinLock>::value,
"MicroSpinLock must be kept a POD type.");

//////////////////////////////////////////////////////////////////////

Expand Down

0 comments on commit 708998e

Please sign in to comment.