]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/pfr/test/run/non_std_layout.cpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / pfr / test / run / non_std_layout.cpp
CommitLineData
20effc67
TL
1// Copyright (c) 2018-2020 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
8
9struct non_standard_layout_member {
10private:
11 int i = 0;
12
13public:
14 int j = 1;
15};
16
17struct test_with_non_st_layout {
18 non_standard_layout_member m;
19 double d;
20 float f;
21};
22
23int main() {
24 static_assert(boost::pfr::tuple_size<test_with_non_st_layout>::value == 3, "");
25}
26