]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/pfr/test/compile-fail/non_aggregate.cpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / pfr / test / compile-fail / non_aggregate.cpp
CommitLineData
20effc67
TL
1// Copyright (c) 2016-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/core.hpp>
7#include <boost/core/lightweight_test.hpp>
8
9#include <tuple>
10
11int main() {
12 (void)boost::pfr::tuple_size<std::pair<int, short>>::value; // Must be a compile time error
13 return boost::report_errors();
14}
15
16