1// Copyright (c) 2020-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/core.hpp>
7
8#include <string>
9
10struct test_struct {
11 int i;
12 std::string s;
13};
14
15int main() {
16 boost::pfr::structure_tie(test_struct{.i: 1, .s: "test"});
17}
18

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