1 // Copyright (c) 2018-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/tuple_size.hpp> 7 8 struct X { 9 X() = default; 10 X(X&&) = default; 11 X(const X&) = delete; 12 13 X& operator=(X&&) = default; 14 X& operator=(const X&) = delete; 15 }; 16 17 struct test_lvalue_ref_and_movable { 18 X x; 19 char& c; 20 }; 21 main()22int main() { 23 return boost::pfr::tuple_size<test_lvalue_ref_and_movable>::value; 24 } 25 26