// Copyright 2022 Peter Dimov. // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt // // https://github.com/boostorg/function/issues/42 #include struct F { int operator()( int x ) const { return -x; } }; struct X { boost::function f_; explicit X( boost::function f ): f_( f ) {} }; F f2; X x( f2 ); // -Wuninitialized under GCC 12