Demonstration of issue: https://godbolt.org/z/ByihAd
It appears that on gcc, if a function_ref has a return type that is declared with [[nodiscard]] then a -Wunused-result warning is emitted (but not on clang). Any way that we can work around this?
Thanks