]>
Commit | Line | Data |
---|---|---|
1e59de90 | 1 | // Copyright (c) 2016-2022 Antony Polukhin |
20effc67 TL |
2 | // |
3 | // Distributed under the Boost Software License, Version 1.0. (See accompanying | |
4 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
5 | ||
6 | #include <boost/pfr/tuple_size.hpp> | |
7 | ||
8 | struct bf { | |
9 | unsigned int i1: 1; | |
10 | unsigned int i2: 1; | |
11 | unsigned int i3: 1; | |
12 | unsigned int i4: 1; | |
13 | unsigned int i5: 1; | |
14 | unsigned int i6: 1; | |
15 | }; | |
16 | ||
17 | int main() { | |
18 | static_assert(boost::pfr::tuple_size<bf>::value == 6, ""); | |
19 | } | |
20 | ||
21 |