Namespaces
Variants
Views
Actions

Talk:cpp/language/constraints

From cppreference.com

[edit] English Grammar

"To begin a requires-expression, which is a prvalue expression of type bool that describes the constraints on some template arguments." is not an English sentence. I'm not sure what this is attempting to say. Tmcleod (talk) 08:36, 10 April 2018 (PDT)

The sentence is abbreviated. And it might be prepended with "The keyword requires is used". Fruderica (talk) 02:49, 11 April 2018 (PDT)

[edit] Split 'requires expressions' section into an individual page

As a page migrated from TS, it is too lengthy and diverse in topic for an ordinary one. I propose to split 'requires expressions' section into an individual page. Further reasons:

  • requires expressions can not only be used in constraints, but wherever in expression context.
  • any bool expressions can be used in constraints other than just requires expressions.
  • noexcept specifier and operator are arranged in different pages similarly.

Yaossg (talk) 22:06, 6 July 2022 (PDT)

I agree --Ybab321 (talk) 02:40, 7 July 2022 (PDT)
Agree also --Cubbi (talk) 06:06, 7 July 2022 (PDT)
I agree, but you need to recognize that the user experience is really bad for anyone who was used to it being here. I suggest including a link, perhaps only temporarily, to the new page at the top of the page in addition to the link at the bottom. Given the amount of downvotes on the change, I reckon I wasn't the only one who had the problem. To be absolutely clear, I am in favor of your edit as this page was a nightmare to navigate before, once I actually found the new page I really like the change. --Waffl3x 135.23.119.250 16:00, 13 July 2022 (PDT)
Link at the top sounds fine. What downvotes are you talking about? --Ybab321 (talk) 02:42, 14 July 2022 (PDT)