[all-commits] [llvm/llvm-project] 2d34cb: [libc++] Implement `thread::id` comparators as fre...

Adrian Vogelsgesang via All-commits all-commits at lists.llvm.org
Wed Aug 10 11:41:09 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2d34cb74b5257ecddfb5781c413232f4ecf99016
      https://github.com/llvm/llvm-project/commit/2d34cb74b5257ecddfb5781c413232f4ecf99016
  Author: Adrian Vogelsgesang <avogelsgesang at tableau.com>
  Date:   2022-08-10 (Wed, 10 Aug 2022)

  Changed paths:
    M libcxx/docs/ReleaseNotes.rst
    M libcxx/include/__threading_support
    M libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/eq.pass.cpp
    M libcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.id/lt.pass.cpp

  Log Message:
  -----------
  [libc++] Implement `thread::id` comparators as free functions

So far, the `thread::id` comparators were implemented as hidden friends.
This was non-conforming and lead to incorrectly rejected C++ code, as
can be seen in the linked Github issue.

Fixes https://github.com/llvm/llvm-project/issues/56187

Differential Revision: https://reviews.llvm.org/D131430




More information about the All-commits mailing list