]>
Commit | Line | Data |
---|---|---|
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> | |
6 | namespace hana = boost::hana; | |
7 | ||
8 | ||
9 | struct A { }; | |
10 | struct B { }; | |
11 | ||
12 | int main() { | |
13 | { | |
14 | using T = hana::tuple<int, A>; | |
15 | static_assert((sizeof(T) == sizeof(int)), ""); | |
16 | } | |
17 | { | |
18 | using T = hana::tuple<A, int>; | |
19 | static_assert((sizeof(T) == sizeof(int)), ""); | |
20 | } | |
21 | { | |
22 | using T = hana::tuple<A, int, B>; | |
23 | static_assert((sizeof(T) == sizeof(int)), ""); | |
24 | } | |
25 | { | |
26 | using T = hana::tuple<A, B, int>; | |
27 | static_assert((sizeof(T) == sizeof(int)), ""); | |
28 | } | |
29 | { | |
30 | using T = hana::tuple<int, A, B>; | |
31 | static_assert((sizeof(T) == sizeof(int)), ""); | |
32 | } | |
33 | } |