Namespaces
Variants
Views
Actions

Difference between revisions of "Talk:cpp/utility/tuple/tuple-like"

From cppreference.com
< Talk:cpp‎ | utility‎ | tuple
(Request for clarification)
 
(Request for clarification: re)
 
Line 4: Line 4:
  
 
[[User:Yaossg|Yaossg]] ([[User talk:Yaossg|talk]]) 02:25, 20 September 2024 (PDT)
 
[[User:Yaossg|Yaossg]] ([[User talk:Yaossg|talk]]) 02:25, 20 September 2024 (PDT)
 +
: Yup, tuple-like cannot be fulfilled by user-defined types anymore for whatever reason, see https://eel.is/c++draft/tuple.like --[[User:Ybab321|Ybab321]] ([[User talk:Ybab321|talk]]) 16:00, 20 September 2024 (PDT)

Latest revision as of 15:00, 20 September 2024

[edit] Request for clarification

As of C++23, all interfaces accept tuple-like objects redirect to this concept. Description of this page defines tuple-like types as 'if it is a specialization of standard library templates', which appears to reject user-defined tuple-like types. Is that what standard is proposing? Or it is just a miswording? (If so, it should be defined as 'types that implements tuple-protocol', and then enumerate standard library examples. i.e. swapping note section with the description.)

Yaossg (talk) 02:25, 20 September 2024 (PDT)

Yup, tuple-like cannot be fulfilled by user-defined types anymore for whatever reason, see https://eel.is/c++draft/tuple.like --Ybab321 (talk) 16:00, 20 September 2024 (PDT)