]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/pfr/test/run/non_default_constructible.cpp
1 // Copyright (c) 2018-2020 Antony Polukhin
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)
6 #include <boost/pfr/tuple_size.hpp>
11 struct S
{ X x0
; X x1
; int x2
; X x3
; };
14 static_assert(boost::pfr::tuple_size_v
<S
> == 4, "");
16 struct S5_0
{ int x0
; int x1
; int x2
; int x3
; X x4
; };
17 static_assert(boost::pfr::tuple_size_v
<S5_0
> == 5, "");
19 struct S5_1
{ X x0
; int x1
; int x2
; int x3
; int x4
; };
20 static_assert(boost::pfr::tuple_size_v
<S5_1
> == 5, "");
22 struct S5_2
{ int x0
; int x1
; X x2
; int x3
; int x4
; };
23 static_assert(boost::pfr::tuple_size_v
<S5_2
> == 5, "");
25 struct S5_3
{ int x0
; int x1
; X x2
; int x3
; X x4
; };
26 static_assert(boost::pfr::tuple_size_v
<S5_3
> == 5, "");
28 struct S5_4
{ X x0
; X x1
; X x2
; X x3
; X x4
; };
29 static_assert(boost::pfr::tuple_size_v
<S5_4
> == 5, "");
31 struct S6
{ X x0
; X x1
; X x2
; X x3
; X x4
; X x5
;};
32 static_assert(boost::pfr::tuple_size_v
<S6
> == 6, "");