]>
Commit | Line | Data |
---|---|---|
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 | ||
9 | struct non_standard_layout_member { | |
10 | private: | |
11 | int i = 0; | |
12 | ||
13 | public: | |
14 | int j = 1; | |
15 | }; | |
16 | ||
17 | struct test_with_non_st_layout { | |
18 | non_standard_layout_member m; | |
19 | double d; | |
20 | float f; | |
21 | }; | |
22 | ||
23 | int main() { | |
24 | static_assert(boost::pfr::tuple_size<test_with_non_st_layout>::value == 3, ""); | |
25 | } | |
26 |