Skip to content

[libc++] P0355R7: Reject misused Clock type for which is_clock_v<Clock> is false for multi-threading components #167071

@frederick-vs-ja

Description

@frederick-vs-ja

Link: https://wg21.link/p0355r7, https://eel.is/c++draft/thread.req.paramname

Affected components:

Remarks:

  • We should not reject non-clock types in time_point, per P2212R2.
  • is_clock_v is a C++20 feature, but most of affected components have been present before C++20. So we should either
    • guard the static_assert's with _LIBCPP_STD_VER >= 20, or
    • create an equivalent internal variable template and use it in static_assert's before C++20.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c++20chronoIssues related to std::chronolibc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.threadingissues related to threading

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions