]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/pfr/test/run/fields_count_on_const.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / pfr / test / run / fields_count_on_const.cpp
1 // Copyright (c) 2018-2022 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/detail/fields_count.hpp>
7
8 struct some_struct {
9 int i;
10 int j;
11 };
12
13 int main() {
14 static_assert(boost::pfr::detail::fields_count<const some_struct>() == 2, "");
15 }