[all-commits] [llvm/llvm-project] 054f9c: [libc++] Fix `std::pair`'s pair-like constructor'...

Hui via All-commits all-commits at lists.llvm.org
Mon Sep 18 11:01:34 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 054f9c55c6b4520d3feb8b4354b9b942026b5124
      https://github.com/llvm/llvm-project/commit/054f9c55c6b4520d3feb8b4354b9b942026b5124
  Author: Hui <65944694+huixie90 at users.noreply.github.com>
  Date:   2023-09-18 (Mon, 18 Sep 2023)

  Changed paths:
    M libcxx/include/__utility/pair.h
    M libcxx/test/std/utilities/utility/pairs/pairs.pair/ctor.pair_like.pass.cpp

  Log Message:
  -----------
  [libc++] Fix `std::pair`'s  pair-like constructor's incorrect assumption (#66585)

The helper function `__pair_like_explicit_wknd` is only SFINAE-ed with
`tuple_size<remove_cvref_t<_PairLike>>::value == 2`, but its function
body assumes `std::get` being valid.

Fixes #65620




More information about the All-commits mailing list