Skip to content

Commit c3264aa

Browse files
committed
Hewill comments about existing practive for comparable typedefs
1 parent e6e6ee3 commit c3264aa

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

xml/issue4373.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,20 @@ static_assert(is_same_v< function_ref<int(int)>::result_type,
2727
It seems worthwhile to also provide it for the latter, as it is consistent with the other
2828
wrappers 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>

0 commit comments

Comments
 (0)