Allow constexpr construction of AtomicStruct under MSVC
Summary: Attempting to use this under MSVC, as `MemoryIdler::defaultIdleTimeout` does, generated warnings about the symbol being dynamically initialized due to an implementation limation. Solve this by defining a union instead of calling `encode` in the constructor. Reviewed By: yfeldblum Differential Revision: D3387916 fbshipit-source-id: b0d628b6d086960e94121b6183a31348fb151aac
Showing
Please register or sign in to comment