| 1 | // Copyright (c) 2021 Denis Mikhailov |
|---|---|
| 2 | // Copyright (c) 2021 Antony Polukhin |
| 3 | // |
| 4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying |
| 5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 6 | |
| 7 | #include <boost/pfr/core.hpp> |
| 8 | |
| 9 | struct A |
| 10 | {}; |
| 11 | |
| 12 | struct B : A |
| 13 | { |
| 14 | int one; |
| 15 | int two; |
| 16 | }; |
| 17 | |
| 18 | int main() { |
| 19 | (void)boost::pfr::tuple_size<B>::value; // Must be a compile time error |
| 20 | } |
| 21 | |
| 22 |
