[PATCH] D99560: Utility to construct visitors from lambdas.

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 14 13:43:56 PDT 2021


dblaikie added a comment.

Yeah, can't think of a way that would do the right overload resolution (especially accounting for default arguments) without the user having to explicitly name the function type (like with std::function, for instance). So, fair enough, I'm OK with inheritance. Some std::fowarding would be nice though - tests that this doesn't copy functors when they're movable, etc.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D99560



More information about the llvm-commits mailing list