-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix compilation of folly/Bits.h with MSVC
Summary: This diff fixes compilation of folly/Bits.h with MSVC by checking for both <bit>/C++ version and checking for the __cpp_lib flag for std::bit_set. When compiling F14Table.cpp with MSVC and C++20, the <bit> check was passing while the check for __cpp_lib_bit_cast was failing. This also corrects two uses of bit_cast to use folly::bit_cast. Reviewed By: Gownta Differential Revision: D49357730 fbshipit-source-id: c741a7b9f4b1862af6c0110a52d720337ff58748
- Loading branch information
1 parent
f52e6aa
commit abbd46b
Showing
3 changed files
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters