https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70692
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- "A type trait to detect reference binding to temporary" https://wg21.link/p2255r2 is the current direction to resolve this.
redi at gcc dot gnu.org via Gcc-bugs Fri, 03 Dec 2021 14:12:28 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70692
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- "A type trait to detect reference binding to temporary" https://wg21.link/p2255r2 is the current direction to resolve this.