Compile [2024-11-17 17:17:38 UTC]: fail
"g++-13" -fvisibility-inlines-hidden -std=c++11 -fPIC -m64 -pthread -O0 -fno-inline -Wall -fvisibility=hidden -DBOOST_ALL_NO_LIB=1 -DBOOST_COBALT_USE_STD_PMR=1 -I".." -I"/var/boost/run/boost_root/libs/hof/include" -c -o "/var/boost/run/results/boost/bin.v2/libs/hof/test/apply.test/gcc-13~c++11/debug/x86_64/debug-symbols-off/threading-multi/visibility-hidden/apply.o" "../libs/hof/test/apply.cpp"
In file included from ../boost/hof/apply.hpp:60,
from ../libs/hof/test/apply.cpp:7:
../boost/hof/apply.hpp:244:30: warning: possibly dangling reference to a temporary [-Wdangling-reference]
244 | BOOST_HOF_DECLARE_STATIC_VAR(apply, detail::apply_f);
| ^~~~~
../boost/hof/detail/static_const_var.hpp:63:65: note: in definition of macro 'BOOST_HOF_STATIC_CONST_VAR'
63 | #define BOOST_HOF_STATIC_CONST_VAR(name) static constexpr auto& name = boost::hof::detail::static_const_var_factory()
| ^~~~
../boost/hof/apply.hpp:244:1: note: in expansion of macro 'BOOST_HOF_DECLARE_STATIC_VAR'
244 | BOOST_HOF_DECLARE_STATIC_VAR(apply, detail::apply_f);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../boost/hof/detail/static_const_var.hpp:66:96: note: the temporary was destroyed at the end of the full expression 'boost::hof::detail::static_const_var_factory().boost::hof::detail::static_const_var_factory::operator=<boost::hof::detail::apply_f>(boost::hof::detail::apply_f())'
66 | #define BOOST_HOF_DECLARE_STATIC_VAR(name, ...) BOOST_HOF_STATIC_CONST_VAR(name) = __VA_ARGS__{}
| ^
../boost/hof/apply.hpp:244:1: note: in expansion of macro 'BOOST_HOF_DECLARE_STATIC_VAR'
244 | BOOST_HOF_DECLARE_STATIC_VAR(apply, detail::apply_f);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../libs/hof/test/apply.cpp: In member function 'void test_440::operator()() const':
../libs/hof/test/apply.cpp:444:19: error: static assertion failed
444 | static_assert(noexcept(boost::hof::apply(&no_throw_member_fun::foo_nullary, obj)), "");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../libs/hof/test/apply.cpp:446:19: error: static assertion failed
446 | static_assert(noexcept(boost::hof::apply(&no_throw_member_fun::foo_unary, obj, std::move(arg))), "");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~