]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/pfr/test/compile-fail/inherited_nonempty.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / pfr / test / compile-fail / inherited_nonempty.cpp
1 // Copyright (c) 2021 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/core.hpp>
7
8 struct A {
9 int zero;
10 };
11
12 struct B : public A {
13 int one;
14 int two;
15 };
16
17 int main() {
18 (void)boost::pfr::tuple_size<B>::value; // Must be a compile time error
19 }
20