1// Copyright (c) 2016-2024 Antony Polukhin
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
8struct 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
17int main() {
18 static_assert(boost::pfr::tuple_size<bf>::value == 6, "");
19}
20
21
22

source code of boost/libs/pfr/test/core/run/bitfields_count.cpp