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 <string> 7 8 #include <boost/pfr/ops.hpp> 9 10 union test_union { 11 const char* c; 12 int i; 13 }; 14 main()15int main() { 16 test_union v{""}; 17 return boost::pfr::eq(v, v); 18 } 19