| 1 | // Copyright 2021 Peter Dimov |
| 2 | // Distributed under the Boost Software License, Version 1.0. |
| 3 | // https://www.boost.org/LICENSE_1_0.txt |
| 4 | |
| 5 | #include <boost/describe/enum.hpp> |
| 6 | #include <boost/describe/class.hpp> |
| 7 | |
| 8 | namespace N1 |
| 9 | { |
| 10 | enum D |
| 11 | { |
| 12 | d |
| 13 | }; |
| 14 | |
| 15 | BOOST_DESCRIBE_ENUM(D, d) |
| 16 | } |
| 17 | |
| 18 | namespace N2 |
| 19 | { |
| 20 | enum E |
| 21 | { |
| 22 | D |
| 23 | }; |
| 24 | |
| 25 | BOOST_DESCRIBE_ENUM(E, D) |
| 26 | } |
| 27 | |
| 28 | namespace N3 |
| 29 | { |
| 30 | struct D |
| 31 | { |
| 32 | int d; |
| 33 | }; |
| 34 | |
| 35 | BOOST_DESCRIBE_STRUCT(D, (), (d)) |
| 36 | } |
| 37 | |
| 38 | namespace N4 |
| 39 | { |
| 40 | struct E |
| 41 | { |
| 42 | int D; |
| 43 | }; |
| 44 | |
| 45 | BOOST_DESCRIBE_STRUCT(E, (), (D)) |
| 46 | } |
| 47 | |
| 48 | namespace N5 |
| 49 | { |
| 50 | class D |
| 51 | { |
| 52 | int d; |
| 53 | BOOST_DESCRIBE_CLASS(D, (), (), (), (d)) |
| 54 | }; |
| 55 | } |
| 56 | |
| 57 | namespace N6 |
| 58 | { |
| 59 | struct D {}; |
| 60 | struct E: D {}; |
| 61 | BOOST_DESCRIBE_STRUCT(E, (D), ()) |
| 62 | } |
| 63 | |
| 64 | namespace N7 |
| 65 | { |
| 66 | struct D {}; |
| 67 | class E: D |
| 68 | { |
| 69 | int d; |
| 70 | BOOST_DESCRIBE_CLASS(E, (D), (), (), (d)) |
| 71 | }; |
| 72 | } |
| 73 | |
| 74 | int main() |
| 75 | { |
| 76 | } |
| 77 | |