]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/pfr/test/compile-fail/virtual_functions.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / pfr / test / compile-fail / virtual_functions.cpp
CommitLineData
1e59de90 1// Copyright (c) 2018-2022 Antony Polukhin
20effc67
TL
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
8struct test_with_virtual {
9 int i = 0;
10 char c = 'a';
11 double d = 3.4;
12 float f = 3.5f;
13
14 virtual double sum() const { return i + d + c + f; }
15};
16
17int main() {
18 return boost::pfr::tuple_size<test_with_virtual>::value;
19}
20