]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | // (C) Copyright John Maddock 2021 |
2 | ||
3 | // Use, modification and distribution are subject to the | |
4 | // Boost Software License, Version 1.0. (See accompanying file | |
5 | // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
6 | ||
7 | // See http://www.boost.org/libs/config for more information. | |
8 | ||
9 | // MACRO: BOOST_NO_CXX20_HDR_BIT | |
10 | // TITLE: C++20 <bit> header is either not present or too broken to be used | |
11 | // DESCRIPTION: The compiler does not support the C++20 header <bit> | |
12 | ||
13 | #include <bit> | |
14 | ||
15 | namespace boost_no_cxx20_hdr_bit { | |
16 | ||
17 | using std::bit_cast; | |
18 | using std::has_single_bit; | |
19 | using std::bit_ceil; | |
20 | using std::bit_floor; | |
21 | using std::bit_width; | |
22 | using std::rotl; | |
23 | using std::rotr; | |
24 | using std::countl_zero; | |
25 | using std::countl_one; | |
26 | using std::countr_zero; | |
27 | using std::countr_one; | |
28 | using std::popcount; | |
29 | ||
30 | int test() | |
31 | { | |
32 | return 0; | |
33 | } | |
34 | ||
35 | } |