Compile [2024-11-19 01:23:44 UTC]: fail
"g++-13" -fvisibility-inlines-hidden -std=c++20 -O2 -fPIC -m64 -pthread -O0 -fno-inline -Wall -fvisibility=hidden -DBOOST_ALL_NO_LIB=1 -DBOOST_COBALT_USE_STD_PMR=1 -I".." -c -o "/var/boost/run/results/boost/bin.v2/libs/yap/test/reference_returns.test/gcc-13~c++20~O2/debug/x86_64/debug-symbols-off/threading-multi/visibility-hidden/reference_returns.o" "../libs/yap/test/reference_returns.cpp"
../libs/yap/test/reference_returns.cpp: In function 'int main()':
../libs/yap/test/reference_returns.cpp:36:57: error: conversion from '<brace-enclosed initializer list>' to 'term<reference_returning::number>' {aka 'boost::yap::expression<boost::yap::expr_kind::terminal, boost::hana::tuple<reference_returning::number> >'} is ambiguous
36 | term<reference_returning::number> unity = {{1.0}};
| ^
In file included from ../libs/yap/test/reference_returns.cpp:6:
../boost/yap/expression.hpp:142:19: note: candidate: 'constexpr boost::yap::expression<boost::yap::expr_kind::terminal, boost::hana::tuple<T> >::expression(boost::hana::tuple<T>&&) [with T = reference_returning::number]'
142 | constexpr expression(hana::tuple<T> && rhs) : elements(std::move(rhs))
| ^~~~~~~~~~
../boost/yap/expression.hpp:139:19: note: candidate: 'constexpr boost::yap::expression<boost::yap::expr_kind::terminal, boost::hana::tuple<T> >::expression(const boost::hana::tuple<T>&) [with T = reference_returning::number]'
139 | constexpr expression(hana::tuple<T> const & rhs) : elements(rhs) {}
| ^~~~~~~~~~
../boost/yap/expression.hpp:136:19: note: candidate: 'constexpr boost::yap::expression<boost::yap::expr_kind::terminal, boost::hana::tuple<T> >::expression(T&&) [with T = reference_returning::number]'
136 | constexpr expression(T && t) : elements(static_cast<T &&>(t)) {}
| ^~~~~~~~~~
../libs/yap/test/reference_returns.cpp:76:49: warning: possibly dangling reference to a temporary [-Wdangling-reference]
76 | reference_returning::number const & n =
| ^
../libs/yap/test/reference_returns.cpp:77:25: note: the temporary was destroyed at the end of the full expression 'boost::yap::evaluate<expression<boost::yap::expr_kind::terminal, boost::hana::tuple<placeholder<1> > >, const reference_returning::number&>(boost::yap::literals::operator""_p<'1'>(), reference_returning::the_result)'
77 | evaluate(1_p, reference_returning::the_result);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~