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

Include <bit> in folly/lang/Bits.h (#1334)

Summary:
[Folly] Add `#include <bit>` in `folly/lang/Bits.h` when that header, which is introduced in C++20, is available.

Fixes https://github.com/facebook/folly/issues/1333.
Closes https://github.com/facebook/folly/pull/1334.

Reviewed By: luciang, markisaa

Differential Revision: D20369239

fbshipit-source-id: fee8682c23107a1da17c35abf5a9e16bb5177cdd
parent ea53fcaa
......@@ -64,6 +64,10 @@
#include <folly/lang/Assume.h>
#include <folly/portability/Builtins.h>
#if __has_include(<bit>)
#include <bit>
#endif
namespace folly {
#if __cpp_lib_bit_cast
......
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