[all-commits] [llvm/llvm-project] 389146: [libc++] Avoid using **this in error messages for ...

ZERO-N via All-commits all-commits at lists.llvm.org
Thu Aug 1 05:56:33 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 389146816711ef6d11e54726e8ea300bf9945dc3
      https://github.com/llvm/llvm-project/commit/389146816711ef6d11e54726e8ea300bf9945dc3
  Author: ZERO-N <1416312228 at qq.com>
  Date:   2024-08-01 (Thu, 01 Aug 2024)

  Changed paths:
    M libcxx/include/__expected/expected.h
    M libcxx/test/libcxx/utilities/expected/expected.expected/and_then.mandates.verify.cpp

  Log Message:
  -----------
  [libc++] Avoid using **this in error messages for expected monadic operations (#84840)

Instead of using **this in error messages for std::expected monadic
operations, use value(). As shown in LWG3969, **this can trigger
unintended ADL and while it's only an error message, we might as
well be ADL-correct there too.

Co-authored-by: Louis Dionne <ldionne.2 at gmail.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list