[all-commits] [llvm/llvm-project] 7d9540: [libc++][chrono] Implements duration Rep constrain...

Mark de Wever via All-commits all-commits at lists.llvm.org
Sat Feb 10 05:22:08 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7d9540ea96ecb1e83f19cc68a202e8fa697c513d
      https://github.com/llvm/llvm-project/commit/7d9540ea96ecb1e83f19cc68a202e8fa697c513d
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2024-02-10 (Sat, 10 Feb 2024)

  Changed paths:
    M libcxx/docs/Status/Cxx20Issues.csv
    M libcxx/include/__chrono/duration.h
    M libcxx/include/chrono
    M libcxx/test/std/time/rep.h
    M libcxx/test/std/time/time.duration/time.duration.nonmember/op_divide_duration.pass.cpp
    M libcxx/test/std/time/time.duration/time.duration.nonmember/op_mod_duration.pass.cpp
    M libcxx/test/std/time/time.duration/time.duration.nonmember/op_times_rep.pass.cpp

  Log Message:
  -----------
  [libc++][chrono] Implements duration Rep constraints. (#80539)

Applies LWG3050 to the constraints of operator*, operator/, and
operator%. The changes to the constructor were done in
https://reviews.llvm.org/D118902, but that patch did not identify the
related LWG-issue, and only adjusted the constructor to the wording in
the Standard.

Implements:
- LWG 3050: Conversion specification problem in chrono::duration
constructor

---------

Co-authored-by: h-vetinari <h.vetinari at gmx.com>




More information about the All-commits mailing list