Namespaces
Variants
Actions

Talk:cpp/header/ranges

From cppreference.com
  • The header <ranges> should be modernized to C++20, as it is still uses the old CamelCase conceptions' names. :r
    Done: ✔ --Space Mission (talk) 16:33, 13 January 2021 (PST)
  • Besides, what naming for "exposition only" names should we prefer: kebab-style or __CamelStyle? I'd prefer the latter as it at least produces the eligible C++ identifiers. :D --Space Mission (talk) 09:45, 1 January 2021 (PST)
    Done: ✔ --Space Mission (talk) 16:33, 13 January 2021 (PST)
Late to the party, but I support the change to __CamelStyle, single-underscore _CamelStyle would also have been fine --Ybab321 (talk) 07:38, 14 January 2021 (PST)

[edit] Not freestanding yet

Just reminding, that presently in the header <ranges> (same as in draft) all classes are marked as freestanding, except the following:

  1. repeat_view - P2474R2 2022-07 (C++23)
  2. stride_view - P1899R3 2022-07 (C++23)
  3. cartesian_product_view - P2374R4 2022-07 (C++23)
  4. istream_view - (C++20) (but this is understandable because all streams are not freestanding).

Are these (1-3) not freestanding by intention or due to other reasons (e.g., came too late)?

--Space Mission (talk) 10:20, 23 November 2022 (PST)

They have been made freestanding (as part of 2022-11 LWG motion 8), but the changes have not been applied to the draft standard yet. --D41D8CD98F (talk) 15:04, 23 November 2022 (PST)
"Came too late" was indeed the reason. Here's the aforementioned issue LWG3814 --Ybab321 (talk) 02:41, 24 November 2022 (PST)
Oh, I see ✔✔ --Space Mission (talk) 03:50, 24 November 2022 (PST)