1// Copyright (c) 2018-2024 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/detail/fields_count.hpp>
7
8struct some_struct {
9 int i;
10 int j;
11};
12
13int main() {
14 return static_cast<int>(boost::pfr::detail::fields_count<some_struct&>());
15}
16

source code of boost/libs/pfr/test/core/compile-fail/fields_count_on_reference.cpp