Skip to content

LWG-3554 chrono::parse needs const charT* and basic_string_view<charT> overloads #1928

@HowardHinnant

Description

@HowardHinnant

Describe the bug

A new LWG issue was just filed because of a defect in the C++20 chrono parse overloads.

https://cplusplus.github.io/LWG/issue3554

As I write this, the issue hasn't been looked at by the LWG. I am hopeful for a quick P0 resolution. The recommended wording in the issue has been implemented at https://github.com/HowardHinnant.

Command-line test case

This should work:

in >> parse("%F %T", tp);

where tp is system_clock::time_point and in is any istream. Right now it doesn't work because parse is lacking an overload to take the format string literal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    LWGLibrary Working Group issuechronoC++20 chronofixedSomething works now, yay!

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions