[all-commits] [llvm/llvm-project] d9c9a7: [libc++] Add missing friend keyword

Louis Dionne via All-commits all-commits at lists.llvm.org
Tue Sep 15 11:21:28 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d9c9a74d0dc5b64c7c8496294ed962d7ce332337
      https://github.com/llvm/llvm-project/commit/d9c9a74d0dc5b64c7c8496294ed962d7ce332337
  Author: Louis Dionne <ldionne at apple.com>
  Date:   2020-09-15 (Tue, 15 Sep 2020)

  Changed paths:
    M libcxx/include/iterator

  Log Message:
  -----------
  [libc++] Add missing friend keyword

Otherwise, we're declaring a non-static member function, and that
gives errors in C++11 because of the change of semantics between
C++11 and C++14 for non-const constexpr member functions.

This was always intended to be a friend declaration.




More information about the All-commits mailing list