File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,20 @@ static_assert(is_same_v< function_ref<int(int)>::result_type,
2727It seems worthwhile to also provide it for the latter, as it is consistent with the other
2828wrappers and allows the user to easily extract the return type.
2929</p >
30+
31+ <note >2025-10-03; Hewill comments</note >
32+ <p >
33+ Additionally, given that some third-party implementations also provide a mechanism for
34+ extracting the return type, for example, `type_safe::function_ref` provides a public member
35+ type alias
36+ <a
37+ href =" https://github.com/foonathan/type_safe/blob/cdf334cd8e5fcb5e21ab470decdfcbd190ef7347/include/type_safe/reference.hpp#L566" >
38+ <code >return_type</code ></a >, and `llvm::function_ref` can work with
39+ <a
40+ href =" https://github.com/llvm/llvm-project/blob/cd32b9b6c3b2fda3a781d9ce0a0cf8e21c9d0137/llvm/include/llvm/ADT/STLExtras.h#L67" >
41+ <code >llvm::function_traits</code ></a > to obtain the return type, providing such a member
42+ type alias for `std::function_ref` meets user potential demands.
43+ </p >
3044</discussion >
3145
3246<resolution >
You can’t perform that action at this time.
0 commit comments