Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Could C++/WinRT consider adding a basic_cstring_view? #1531

Copy link
Copy link
@YexuanXiao

Description

@YexuanXiao
Issue body actions

Summary

As I mentioned in the comment of issue 1529, std::basic_cstring_view won't be available until C++29. Raising C++/WinRT's minimum standard to C++29 seems quite distant for both v2 and the future v3, so why don't we implement it first? I believe it should at least remain a template, which would facilitate easier migration to the future std::basic_cstring_view. Then, it only needs to implement the functions required by C++/WinRT, such as constructors, comparison operators, etc., to reduce maintenance burden and avoid implementing functions that won't exist in std::basic_cstring_view as much as possible.

Note that the latest C++ proposal is P3655R3. The authors of the two previously parallel proposals have decided to merge them and agreed that the name should be basic_cstring_view, not basic_zstring_view.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.