]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/hana/test/tuple/empty_member.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / hana / test / tuple / empty_member.cpp
CommitLineData
b32b8144 1// Copyright Louis Dionne 2013-2017
7c673cae
FG
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
4
5#include <boost/hana/tuple.hpp>
6namespace hana = boost::hana;
7
8
9struct A { };
10struct B { };
11
12int main() {
13 {
14 using T = hana::tuple<int, A>;
92f5a8d4 15 static_assert(sizeof(T) == sizeof(int), "");
7c673cae
FG
16 }
17 {
18 using T = hana::tuple<A, int>;
92f5a8d4 19 static_assert(sizeof(T) == sizeof(int), "");
7c673cae
FG
20 }
21 {
22 using T = hana::tuple<A, int, B>;
92f5a8d4 23 static_assert(sizeof(T) == sizeof(int), "");
7c673cae
FG
24 }
25 {
26 using T = hana::tuple<A, B, int>;
92f5a8d4 27 static_assert(sizeof(T) == sizeof(int), "");
7c673cae
FG
28 }
29 {
30 using T = hana::tuple<int, A, B>;
92f5a8d4 31 static_assert(sizeof(T) == sizeof(int), "");
7c673cae
FG
32 }
33}