[PATCH] D144583: [ADT] Fix definition of `adl_begin`/`adl_end` and `Iter`/`ValueOfRange`

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 22 12:28:33 PST 2023


dblaikie added a comment.

> Fix adl_begin/adl_end so that they work with incomplete types. These require trailing return types, per. 7.5.2.: > In a trailing-return-type, the class being defined is not required to be complete for purposes of class member access. Class members declared later are not visible.

Not sure I follow here - could you describe this in more detail, why adding a trailing return type helps? What happens if the trailing return type isn't used here?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D144583/new/

https://reviews.llvm.org/D144583



More information about the llvm-commits mailing list